Skip to content

Commit

Permalink
modules/ble: swap error returns
Browse files Browse the repository at this point in the history
  • Loading branch information
alrs committed Nov 14, 2019
1 parent 63d5ce7 commit c980a7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ble/ble_show.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit c980a7b

Please sign in to comment.