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
|
@ -148,8 +148,9 @@ func (s *Session) sleepHandler(args []string, sess *Session) error {
|
|||
if secs, err := strconv.Atoi(args[0]); err == nil {
|
||||
time.Sleep(time.Duration(secs) * time.Second)
|
||||
return nil
|
||||
} else {
|
||||
return err
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
func (s *Session) getHandler(args []string, sess *Session) error {
|
||||
|
@ -256,8 +257,9 @@ func (s *Session) aliasHandler(args []string, sess *Session) error {
|
|||
|
||||
if s.Lan.SetAliasFor(mac, alias) {
|
||||
return nil
|
||||
} else {
|
||||
return fmt.Errorf("Could not find endpoint %s", mac)
|
||||
}
|
||||
return fmt.Errorf("Could not find endpoint %s", mac)
|
||||
}
|
||||
|
||||
func (s *Session) addHandler(h CommandHandler, c *readline.PrefixCompleter) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue