Return 0 when there is no error (Golang)

This commit is contained in:
Henrique Dias committed 2017-06-28 19:06:08 +01:00
1 parent 8a1a160197
commit b214fdd0eb
8 files changed
+108 -135

No files matched your search

+1 -1
View File
@@ -112,5 +112,5 @@ func search(c *requestContext, w http.ResponseWriter, r *http.Request) (int, err
return http.StatusInternalServerError, err
}
return http.StatusOK, nil
return 0, nil
}