From 5fddbbf194085205977c8ca652c97ffb6ec7f522 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 24 May 2026 18:13:39 +0300 Subject: fix(rpn): widen RPN.consts to ConstantsProvider, remove unsafe type assertion (task yj) --- internal/rpn/rpn_state.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal') diff --git a/internal/rpn/rpn_state.go b/internal/rpn/rpn_state.go index abb9ab8..fc64535 100644 --- a/internal/rpn/rpn_state.go +++ b/internal/rpn/rpn_state.go @@ -13,7 +13,7 @@ import ( type RPN struct { mu sync.RWMutex vars VariableStore - consts ConstantsReader + consts ConstantsProvider ops OperationsProvider opRegistry *OperatorRegistry assignHandler *assignmentHandler @@ -42,7 +42,7 @@ func NewRPN(vars VariableStore, reg ...*MetricRegistry) *RPN { // GetConstants returns the constants provider. // This method is thread-safe for concurrent reads. func (r *RPN) GetConstants() ConstantsProvider { - return r.consts.(ConstantsProvider) + return r.consts } // GetMode returns the current calculation mode. -- cgit v1.2.3