From 32044f073dc92fa8821c0d1d1728e63daf897dd8 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 25 Mar 2026 16:52:44 +0200 Subject: ci: Update Magefile to include shortcuts for build, test, lint, and release - Added Lint target: runs golangci-lint for code quality checks - Added Release target: builds and packages releases (requires goreleaser) Also fixed errcheck linting issue: - Check error return from o.vars.SetVariable in AssignVariable All mage targets work: build, run, test, testRPN, rpn, install, lint, release, repl, uninstall --- internal/rpn/operations.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'internal') diff --git a/internal/rpn/operations.go b/internal/rpn/operations.go index 3bd0fc1..d9965ed 100644 --- a/internal/rpn/operations.go +++ b/internal/rpn/operations.go @@ -711,8 +711,7 @@ func (o *Operations) AssignVariable(stack *Stack, name string) error { } // Convert Value to float64 for variable storage - o.vars.SetVariable(name, toNumber(val)) - return nil + return o.vars.SetVariable(name, toNumber(val)) } // UseVariable pushes a variable's value onto the stack. -- cgit v1.2.3