Fix ineffassign
This commit is contained in:
parent
65c77e9db2
commit
050d5af937
2 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,6 @@ linters:
|
|||
- goconst
|
||||
- staticcheck
|
||||
- nakedret
|
||||
- ineffassign
|
||||
- errcheck
|
||||
- gosec
|
||||
- gochecknoinits
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue