Skip to content

Commit

Permalink
dcs: Resolve lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
johanstokking committed Jul 29, 2024
1 parent 1e9c11f commit 9d84679
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/deviceclaimingserver/gateways/gateways.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ type Config struct {
var errInvalidUpstream = errors.DefineInvalidArgument("invalid_upstream", "upstream `{name}` is invalid")

// ParseGatewayEUIRanges parses the configured upstream map and returns map of ranges.
func ParseGatewayEUIRanges(config map[string][]string) (map[string][]dcstypes.EUI64Range, error) {
res := make(map[string][]dcstypes.EUI64Range, len(config))
for host, ranges := range config {
func ParseGatewayEUIRanges(conf map[string][]string) (map[string][]dcstypes.EUI64Range, error) {
res := make(map[string][]dcstypes.EUI64Range, len(conf))
for host, ranges := range conf {
res[host] = make([]dcstypes.EUI64Range, 0, len(ranges))
for _, val := range ranges {
var r dcstypes.EUI64Range
Expand Down

0 comments on commit 9d84679

Please sign in to comment.