mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
revert
This commit is contained in:
parent
49aeb37b5c
commit
a5116d3533
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ type moduleJSON struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (mm ModuleList) MarshalJSON() ([]byte, error) {
|
func (mm ModuleList) MarshalJSON() ([]byte, error) {
|
||||||
mods := make(map[string]moduleJSON)
|
mods := []moduleJSON{}
|
||||||
for _, m := range mm {
|
for _, m := range mm {
|
||||||
mJSON := moduleJSON{
|
mJSON := moduleJSON{
|
||||||
Name: m.Name(),
|
Name: m.Name(),
|
||||||
|
@ -50,7 +50,7 @@ func (mm ModuleList) MarshalJSON() ([]byte, error) {
|
||||||
Running: m.Running(),
|
Running: m.Running(),
|
||||||
State: m.Extra(),
|
State: m.Extra(),
|
||||||
}
|
}
|
||||||
mods[m.Name()] = mJSON
|
mods = append(mods, mJSON)
|
||||||
}
|
}
|
||||||
return json.Marshal(mods)
|
return json.Marshal(mods)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue