Showing
1 changed file
with
1 additions
and
5 deletions
@@ -46,11 +46,7 @@ func (v Version) Register() { | @@ -46,11 +46,7 @@ func (v Version) Register() { | ||
46 | } | 46 | } |
47 | 47 | ||
48 | func (vMap versionMap) Json() ([]byte, error) { | 48 | func (vMap versionMap) Json() ([]byte, error) { |
49 | - vSlice := make([]Version, len(vMap)) | ||
50 | - for _, v := range vMap { | ||
51 | - vSlice = append(vSlice, v) | ||
52 | - } | ||
53 | - return json.Marshal(vSlice) | 49 | + return json.Marshal(vMap) |
54 | } | 50 | } |
55 | 51 | ||
56 | // vim: ts=4 sts=4 sw=4 noet tw=72: | 52 | // vim: ts=4 sts=4 sw=4 noet tw=72: |
Please
register
or
login
to post a comment