mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-28 22:55:50 +08:00
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:

committed by
GitHub

parent
28fdf64dc5
commit
7dfd69cdc5
2
admin.go
2
admin.go
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user