Skip to content

Commit

Permalink
early return
Browse files Browse the repository at this point in the history
  • Loading branch information
sukunrt committed Sep 14, 2023
1 parent 26ad11d commit 353cc18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/private.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func IsPublicAddr(a ma.Multiaddr) bool {
for _, ud := range unResolvableDomains {
if strings.HasSuffix(dnsAddr, ud) {
isPublic = false
break
return false
}

Check warning on line 117 in net/private.go

View check run for this annotation

Codecov / codecov/patch

net/private.go#L115-L117

Added lines #L115 - L117 were not covered by tests
}
for _, pd := range privateUseDomains {
Expand Down

0 comments on commit 353cc18

Please sign in to comment.