diff --git a/.golangci.yml b/.golangci.yml index 1ff5dd64..16d82a5e 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 ac0957af..b9beab33 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