Fix lint errors
This commit is contained in:
parent
a9f4123ba2
commit
46aa536b37
41 changed files with 498 additions and 406 deletions
2
stack.go
2
stack.go
|
|
@ -68,7 +68,7 @@ func NewStack(
|
|||
|
||||
func HasNextAddress(prefix netip.Prefix, count int) bool {
|
||||
checkAddr := prefix.Addr()
|
||||
for i := 0; i < count; i++ {
|
||||
for range count {
|
||||
checkAddr = checkAddr.Next()
|
||||
}
|
||||
return prefix.Contains(checkAddr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue