Skip to content

Commit 4ce5c4d

Browse files
authored
Merge pull request #165 from database64128/fix-missing-return
Fix NetworksWithin
2 parents 2fabca0 + fa198b8 commit 4ce5c4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

traverse.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ func (r *Reader) NetworksWithin(prefix netip.Prefix, options ...NetworksOption)
104104
prefixLen: uint8(bit),
105105
err: fmt.Errorf("prefixing %s with %d", netIP, bit),
106106
})
107+
return
107108
}
108109

109110
nodes := make([]netNode, 0, 64)

0 commit comments

Comments
 (0)