api,server: slice are already refs, no need to return ptr

This commit is contained in:
Johan Euphrosine
2013-06-28 12:41:09 -07:00
parent e12a204bcc
commit 54da339b2c
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -535,7 +535,7 @@ func deleteImages(srv *Server, version float64, w http.ResponseWriter, r *http.R
return err
}
if imgs != nil {
if len(*imgs) != 0 {
if len(imgs) != 0 {
b, err := json.Marshal(imgs)
if err != nil {
return err