summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-24 18:15:54 +0300
committerPaul Buetow <paul@buetow.org>2026-05-24 18:15:54 +0300
commit452d31effac83d0737c5a2e558741754d53870b4 (patch)
treec980233ea7327b73e1e9ad977caaf79265083fcc
parentf9e56ecb0d866beb665bced56229c00596835889 (diff)
fix(rpn): remove dead number-parse check from handleOperator (task 1k)
-rw-r--r--internal/rpn/rpn_parse.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/internal/rpn/rpn_parse.go b/internal/rpn/rpn_parse.go
index 1365091..094f639 100644
--- a/internal/rpn/rpn_parse.go
+++ b/internal/rpn/rpn_parse.go
@@ -352,11 +352,6 @@ func (r *RPN) processResult(stack *Stack, input string) (string, error) {
// handleOperator handles operators and special commands using the operator registry.
func (r *RPN) handleOperator(stack *Stack, token string, tokenIndex int) (string, error) {
- // Check if it's a number first
- if _, err := strconv.ParseFloat(token, 64); err == nil {
- return "", nil
- }
-
// Check symbol syntax (:x)
if pushed, err := r.checkAndPushSymbol(stack, token); err != nil {
return "", err