mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-08-30 12:12:40 +08:00
feat(优化代码): 错误修复与风格优化
This commit is contained in:
+5
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user