1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-10 00:54:15 +00:00

Go code formatting optimization

This commit is contained in:
Tw93
2026-01-08 15:26:35 +08:00
parent 3e4674f1e6
commit 79a19ffbfe
7 changed files with 25 additions and 28 deletions

View File

@@ -130,6 +130,8 @@ func parseInt(s string) int {
return 0
}
var num int
fmt.Sscanf(cleaned, "%d", &num)
if _, err := fmt.Sscanf(cleaned, "%d", &num); err != nil {
return 0
}
return num
}