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

This commit is contained in:
xiaoqidun committed 2026-01-19 12:29:05 +08:00
1 parent fbfdbb943d
commit 4a00e7833e
2 files changed
+35 -17

No files matched your search

+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
}