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

This commit is contained in:
evilsocket 2018-02-26 19:15:57 +01:00
commit ed78c2ffd5

View file

@ -29,10 +29,5 @@ func (b *BLE) MarshalJSON() ([]byte, error) {
doc := bleJSON{ doc := bleJSON{
Devices: make([]*BLEDevice, 0), Devices: make([]*BLEDevice, 0),
} }
for _, dev := range b.Devices() {
doc.Devices = append(doc.Devices, dev)
}
return json.Marshal(doc) return json.Marshal(doc)
} }