From 050d5af937626f5e1403aabff60ff07941dbc8a3 Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Wed, 18 Dec 2019 16:07:06 +0100 Subject: [PATCH] Fix ineffassign --- .golangci.yml | 1 - server/templates.go | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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