mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
modules/ble: swap error returns
This commit is contained in:
parent
63d5ce7118
commit
c980a7b4b2
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ func (mod *BLERecon) doFilter(dev *network.BLEDevice) bool {
|
|||
mod.selector.Expression.MatchString(dev.Vendor)
|
||||
}
|
||||
|
||||
func (mod *BLERecon) doSelection() (err error, devices []*network.BLEDevice) {
|
||||
func (mod *BLERecon) doSelection() (devices []*network.BLEDevice, err error) {
|
||||
if err = mod.selector.Update(); err != nil {
|
||||
return
|
||||
}
|
||||
|
@ -127,7 +127,7 @@ func (mod *BLERecon) colNames(withName bool) []string {
|
|||
}
|
||||
|
||||
func (mod *BLERecon) Show() error {
|
||||
err, devices := mod.doSelection()
|
||||
devices, err := mod.doSelection()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue