Skip to content

Commit

Permalink
gofumpt
Browse files Browse the repository at this point in the history
Signed-off-by: Karol Szwaj <[email protected]>
  • Loading branch information
cnvergence committed Aug 26, 2024
1 parent de4572a commit 5afe801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func LastIP(subnet string) (string, error) {
return BigInt2Ip(ipInt.Add(ipInt, size)), nil
}

func getCIDRSize(length int, maskLength int) *big.Int {
func getCIDRSize(length, maskLength int) *big.Int {
size := big.NewInt(0).Lsh(big.NewInt(1), uint(length-maskLength))
if maskLength+1 == length {
return big.NewInt(0).Sub(size, big.NewInt(1))
Expand Down

0 comments on commit 5afe801

Please sign in to comment.