mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 05:53:20 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
4d60494bfb
commit
0cbd6d7a9d
3 changed files with 5 additions and 5 deletions
|
@ -326,10 +326,8 @@ func (mod *BLERecon) showServices(p gatt.Peripheral, services []*gatt.Service) {
|
|||
}
|
||||
}
|
||||
|
||||
data := ""
|
||||
raw := ([]byte)(nil)
|
||||
multi := ([]string)(nil)
|
||||
sz := 0
|
||||
raw := ([]byte)(nil)
|
||||
err := error(nil)
|
||||
if isReadable {
|
||||
raw, err = p.ReadCharacteristic(ch)
|
||||
|
@ -338,6 +336,8 @@ func (mod *BLERecon) showServices(p gatt.Peripheral, services []*gatt.Service) {
|
|||
}
|
||||
}
|
||||
|
||||
data := ""
|
||||
multi := ([]string)(nil)
|
||||
if err != nil {
|
||||
data = tui.Red(err.Error())
|
||||
} else if ch.Name() == "Appearance" && sz >= 2 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue