*: fix lint issues
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
d56bf090ce
commit
8088d7a1e2
10 changed files with 43 additions and 41 deletions
|
@ -269,7 +269,7 @@ func (svc *imageService) isSecureIndex(indexName string) bool {
|
|||
for _, addr := range addrs {
|
||||
for _, ipnet := range svc.insecureRegistryCIDRs {
|
||||
// check if the addr falls in the subnet
|
||||
if (*net.IPNet)(ipnet).Contains(addr) {
|
||||
if ipnet.Contains(addr) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue