Skip to content

Commit

Permalink
Fix ineffassign
Browse files Browse the repository at this point in the history
  • Loading branch information
sagikazarmark committed Dec 18, 2019
1 parent 65c77e9 commit 050d5af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ linters:
- goconst
- staticcheck
- nakedret
- ineffassign
- errcheck
- gosec
- gochecknoinits
Expand Down
1 change: 1 addition & 0 deletions server/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 050d5af

Please sign in to comment.