feat(优化代码): 错误修复与风格优化

This commit is contained in:
2026-01-19 12:29:05 +08:00
parent fbfdbb943d
commit 4a00e7833e
2 changed files with 35 additions and 17 deletions
+5 -1
View File
@@ -127,7 +127,11 @@ func parseFloatsWithG(s string) []float64 {
continue
}
if gFlag {
gCount, _ = strconv.Atoi(p)
var err error
gCount, err = strconv.Atoi(p)
if err != nil {
gCount = 0
}
gFlag = false
continue
}