chore: make the linter happier (#3245)

* chore: make the linter happier

* chore: remove reference to maligned linter in .golangci.yml
This commit is contained in:
Mohammed Al Sahaf
2020-04-09 00:31:51 +03:00
committed by GitHub
parent 28fdf64dc5
commit 7dfd69cdc5
19 changed files with 28 additions and 26 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ func parseTryFiles(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue, error)
// if there are query strings in the list, we have to split into
// a separate route for each item with a query string, because
// the rewrite is different for that item
var try []string
try := make([]string, 0, len(tryFiles))
for _, item := range tryFiles {
if idx := strings.Index(item, "?"); idx >= 0 {
if len(try) > 0 {