chore(lint): upgrade linter to v1.56.2
This commit is contained in:
@@ -32,10 +32,10 @@ func (h *dnsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
case http.MethodPut:
|
||||
h.setStatus(w, r)
|
||||
default:
|
||||
http.Error(w, "method "+r.Method+" not supported", http.StatusBadRequest)
|
||||
errMethodNotSupported(w, r.Method)
|
||||
}
|
||||
default:
|
||||
http.Error(w, "route "+r.RequestURI+" not supported", http.StatusBadRequest)
|
||||
errRouteNotSupported(w, r.RequestURI)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user