misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2019-02-22 14:19:25 +01:00
commit 0cbd6d7a9d
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
3 changed files with 5 additions and 5 deletions

View file

@ -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 {