diff options
Diffstat (limited to 'int.go')
| -rw-r--r-- | int.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ package shell -/* +/* send it anything, always get back an int */ @@ -13,7 +13,7 @@ import "strconv" func Int(s string) int { s = Chomp(s) i, err := strconv.Atoi(s) - if (err != nil) { + if err != nil { handleError(err, -1) return 0 } @@ -23,7 +23,7 @@ func Int(s string) int { func Int64(s string) int64 { s = Chomp(s) i, err := strconv.Atoi(s) - if (err != nil) { + if err != nil { handleError(err, -1) return 0 } |
