Browse Source

Fix ineffassign

pull/1604/head
Mark Sagi-Kazar 6 years ago
parent
commit
050d5af937
No known key found for this signature in database
GPG Key ID: 34CC109EB5ED1C2A
  1. 1
      .golangci.yml
  2. 1
      server/templates.go

1
.golangci.yml

@ -21,7 +21,6 @@ linters:
- goconst
- staticcheck
- nakedret
- ineffassign
- errcheck
- gosec
- gochecknoinits

1
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

Loading…
Cancel
Save