diff --git a/.golangci.yml b/.golangci.yml index 1ff5dd643884348ed61d62dbe8651da8319bf09c..16d82a5eb3cc846f583e031a94fe2be265a90129 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -21,7 +21,6 @@ linters: - goconst - staticcheck - nakedret - - ineffassign - errcheck - gosec - gochecknoinits diff --git a/server/templates.go b/server/templates.go index ac0957afd683297c391c22651a384bbbb2806391..b9beab339fb6f1117dc915ce0e8055a5baa362f0 100644 --- a/server/templates.go +++ b/server/templates.go @@ -206,6 +206,7 @@ func relativeURL(serverPath, reqPath, assetPath string) string { server, req, asset := splitPath(serverPath), splitPath(reqPath), splitPath(assetPath) // Remove common prefix of request path with server path + // nolint: ineffassign server, req = stripCommonParts(server, req) // Remove common prefix of request path with asset path