diff options
author | Mohammed Al Sahaf <[email protected]> | 2020-04-09 00:31:51 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-08 15:31:51 -0600 |
commit | 7dfd69cdc5966ae454e35cd6e976686131bfda8d (patch) | |
tree | 4d58832966c5136d5be3d9b3f63dcb07c30999d1 /admin.go | |
parent | 28fdf64dc510472ccd9e6d46eb149d19cd70919a (diff) | |
download | caddy-7dfd69cdc5966ae454e35cd6e976686131bfda8d.tar.gz caddy-7dfd69cdc5966ae454e35cd6e976686131bfda8d.zip |
chore: make the linter happier (#3245)
* chore: make the linter happier
* chore: remove reference to maligned linter in .golangci.yml
Diffstat (limited to 'admin.go')
-rw-r--r-- | admin.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -149,7 +149,7 @@ func (admin AdminConfig) allowedOrigins(listen string) []string { if admin.Origins == nil { uniqueOrigins[listen] = struct{}{} } - var allowed []string + allowed := make([]string, 0, len(uniqueOrigins)) for origin := range uniqueOrigins { allowed = append(allowed, origin) } |