Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
gaissmai committed Dec 30, 2023
1 parent a0b7cd2 commit f3109bc
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions whitebox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,11 @@ func TestStatisticsFullTable(t *testing.T) {
}

skip4 := func(pfx netip.Prefix, val any, depth int) bool {
if pfx.Addr().Is4() {
return true
}
return false
return pfx.Addr().Is4()
}

skip6 := func(pfx netip.Prefix, val any, depth int) bool {
if !pfx.Addr().Is4() {
return true
}
return false
return !pfx.Addr().Is4()
}

size, maxDepth, average, deviation := rtbl.statistics(skip6)
Expand Down

0 comments on commit f3109bc

Please sign in to comment.