Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
evilsocket committed Mar 18, 2019
1 parent 49aeb37 commit a5116d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions session/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type moduleJSON struct {
}

func (mm ModuleList) MarshalJSON() ([]byte, error) {
mods := make(map[string]moduleJSON)
mods := []moduleJSON{}
for _, m := range mm {
mJSON := moduleJSON{
Name: m.Name(),
Expand All @@ -50,7 +50,7 @@ func (mm ModuleList) MarshalJSON() ([]byte, error) {
Running: m.Running(),
State: m.Extra(),
}
mods[m.Name()] = mJSON
mods = append(mods, mJSON)
}
return json.Marshal(mods)
}
Expand Down

0 comments on commit a5116d3

Please sign in to comment.