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
82389bb4b9
commit
ed78c2ffd5
1 changed files with 0 additions and 5 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue