mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 18:57:17 -07:00
if block ends with a return statement drop this else and outdent its block
This commit is contained in:
parent
f128d3a035
commit
bfdd7db018
1 changed files with 1 additions and 2 deletions
|
@ -114,9 +114,8 @@ func (env *Environment) GetInt(name string) (error, int) {
|
|||
if found, value := env.Get(name); found {
|
||||
if i, err := strconv.Atoi(value); err == nil {
|
||||
return nil, i
|
||||
} else {
|
||||
return err, 0
|
||||
}
|
||||
return err, 0
|
||||
}
|
||||
|
||||
return fmt.Errorf("Not found."), 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue