mirror of
https://github.com/bettercap/bettercap
synced 2025-07-14 09:03:39 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
0cbd6d7a9d
commit
2e5624917e
1 changed files with 1 additions and 2 deletions
|
@ -330,8 +330,7 @@ func (mod *BLERecon) showServices(p gatt.Peripheral, services []*gatt.Service) {
|
||||||
raw := ([]byte)(nil)
|
raw := ([]byte)(nil)
|
||||||
err := error(nil)
|
err := error(nil)
|
||||||
if isReadable {
|
if isReadable {
|
||||||
raw, err = p.ReadCharacteristic(ch)
|
if raw, err = p.ReadCharacteristic(ch); raw != nil {
|
||||||
if raw != nil {
|
|
||||||
sz = len(raw)
|
sz = len(raw)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue