if block ends with a return statement drop this else and outdent its block

This commit is contained in:
Kent Gruber 2018-05-01 23:08:11 -04:00
commit 2522b89069

View file

@ -83,7 +83,8 @@ func (w *WiFiModule) getRow(station *network.Station) ([]string, bool) {
recvd,
seen,
}, include
} else {
}
// this is ugly, but necessary in order to have this
// method handle both access point and clients
// transparently
@ -107,7 +108,6 @@ func (w *WiFiModule) getRow(station *network.Station) ([]string, bool) {
seen,
}, include
}
}
func (w *WiFiModule) Show(by string) error {
var stations []*network.Station