Applies gofumpt

This commit is contained in:
Ignasi 2025-03-05 16:18:26 +01:00 committed by Jacob Howard
parent d6423dfae7
commit a83b8e49bf
No known key found for this signature in database
GPG Key ID: 3E8B8F7FEB46FC66
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ func (m *Manager) handleGetModel(w http.ResponseWriter, r *http.Request) {
// Query the model.
model, err := m.GetModel(r.PathValue("namespace") + "/" + r.PathValue("name"))
if err != nil {
if errors.Is(err, ErrModelNotFound) || errors.Is(err, distribution.ErrModelNotFound) { //TODO we should fix different types
if errors.Is(err, ErrModelNotFound) || errors.Is(err, distribution.ErrModelNotFound) { // TODO we should fix different types
http.Error(w, err.Error(), http.StatusNotFound)
} else {
http.Error(w, err.Error(), http.StatusInternalServerError)