various linter fixes (#8666)

This commit is contained in:
Alessio Treglia
2021-02-23 08:46:01 +00:00
committed by GitHub
parent 39b816ebb3
commit f2ee972e31
74 changed files with 19 additions and 168 deletions
+1
View File
@@ -25,6 +25,7 @@ func addHTTPDeprecationHeaders(h http.Handler) http.Handler {
// WithHTTPDeprecationHeaders returns a new *mux.Router, identical to its input
// but with the addition of HTTP Deprecation headers. This is used to mark legacy
// amino REST endpoints as deprecated in the REST API.
// nolint: gocritic
func WithHTTPDeprecationHeaders(r *mux.Router) *mux.Router {
subRouter := r.NewRoute().Subrouter()
subRouter.Use(addHTTPDeprecationHeaders)