Small optimizations and cleanups (#1830)

This commit is contained in:
David Pedersen authored and GitHub committed 2024-11-04 00:25:05 +11:00
1 parent f5a0e655a1
commit 0f48f36b0f
6 files changed
+33 -31

No files matched your search

+1 -1
View File
@@ -326,7 +326,7 @@ func (e *setExpr) eval(app *app, args []string) {
gOpts.promptfmt = e.val
case "ratios":
toks := strings.Split(e.val, ":")
var rats []int
rats := make([]int, 0, len(toks))
for _, s := range toks {
n, err := strconv.Atoi(s)
if err != nil {