Skip to content

Commit

Permalink
chore: slice loop replace
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill authored and eriknordmark committed Oct 11, 2023
1 parent d611aad commit 1435cc9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/pillar/types/zedroutertypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -1738,9 +1738,7 @@ func GetDNSServers(globalStatus DeviceNetworkStatus, ifname string) []net.IP {
if ifname != "" && ifname != us.IfName {
continue
}
for _, server := range us.DNSServers {
servers = append(servers, server)
}
servers = append(servers, us.DNSServers...)
}
return servers
}
Expand Down

0 comments on commit 1435cc9

Please sign in to comment.