mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
Revert "Minor refactors using golint"
This commit is contained in:
parent
9196be7a8b
commit
5328ced392
21 changed files with 101 additions and 70 deletions
|
@ -114,8 +114,9 @@ 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