Update github.com/docker/distribution to v2.7.1

This commit is contained in:
Davanum Srinivas
2019-07-29 14:19:52 -04:00
parent df0a99ad35
commit a0a85c5d1e
5 changed files with 6 additions and 192 deletions

View File

@@ -36,9 +36,5 @@ func ServeJSON(w http.ResponseWriter, err error) error {
w.WriteHeader(sc)
if err := json.NewEncoder(w).Encode(err); err != nil {
return err
}
return nil
return json.NewEncoder(w).Encode(err)
}