Skip to content

Commit

Permalink
wip: fix golang ci
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenceJJones committed Mar 4, 2024
1 parent e5a7eb0 commit a45108e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func toValidCIDR(ip string) string {
}

func getTrustedIPs(ips []string) ([]net.IPNet, error) {
trustedIPs := make([]net.IPNet, len(ips))
trustedIPs := make([]net.IPNet, 0, len(ips))

for _, ip := range ips {
cidr := toValidCIDR(ip)
Expand Down

0 comments on commit a45108e

Please sign in to comment.