From 5afe801ab4f55eaea72c67714db4a3ed37da56b9 Mon Sep 17 00:00:00 2001 From: Karol Szwaj Date: Mon, 26 Aug 2024 13:37:06 +0200 Subject: [PATCH] gofumpt Signed-off-by: Karol Szwaj --- pkg/util/net.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/net.go b/pkg/util/net.go index cb3bca2a553..2ee719833c2 100644 --- a/pkg/util/net.go +++ b/pkg/util/net.go @@ -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))