diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-01-11 16:06:27 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-01-11 16:06:27 -0800 |
commit | 2e0b2d83f065d72fc39f89f592f98af421fce34a (patch) | |
tree | 39e25b494aac05da72e7c3fb9061d1f4327490d2 | |
parent | ed8ed9085f21fda26dc52862f4118b12d0745347 (diff) |
make url.Values so it is not nil when set/add is called
-rw-r--r-- | system/addon/addon.go | 2 | ||||
-rw-r--r-- | system/addon/manager.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/system/addon/addon.go b/system/addon/addon.go index c68a40e..e4e8f70 100644 --- a/system/addon/addon.go +++ b/system/addon/addon.go @@ -185,7 +185,7 @@ func setStatus(key, status string) error { return err } - var vals url.Values + vals := make(url.Values) for k, v := range kv { switch v.(type) { case []string: diff --git a/system/addon/manager.go b/system/addon/manager.go index a227fc3..d73e228 100644 --- a/system/addon/manager.go +++ b/system/addon/manager.go @@ -46,7 +46,7 @@ func Manage(data []byte, reverseDNS string) ([]byte, error) { return nil, err } - var vals url.Values + vals := make(url.Values) for k, v := range kv { switch v.(type) { case []string: |