mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -07:00
if block ends with a return statement drop this else and outdent its block
This commit is contained in:
parent
2522b89069
commit
f0408bc514
1 changed files with 1 additions and 2 deletions
|
@ -101,9 +101,8 @@ func NewWiFiModule(s *session.Session) *WiFiModule {
|
|||
func(args []string) error {
|
||||
if err := w.parseApConfig(); err != nil {
|
||||
return err
|
||||
} else {
|
||||
return w.startAp()
|
||||
}
|
||||
return w.startAp()
|
||||
}))
|
||||
|
||||
w.AddParam(session.NewStringParameter("wifi.ap.ssid",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue