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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user