summaryrefslogtreecommitdiff
path: root/pkg/network
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-10-29 12:18:01 -0500
committerbaude <bbaude@redhat.com>2019-10-29 12:18:50 -0500
commit91baaee9a805e710fde8e4605434d79a20c67f7e (patch)
tree601a8342be605031d44aabe522adc3cc14bc7091 /pkg/network
parent59582c55b798f0a2d086981ca9a8ddd8314fd0c2 (diff)
downloadpodman-91baaee9a805e710fde8e4605434d79a20c67f7e.tar.gz
podman-91baaee9a805e710fde8e4605434d79a20c67f7e.tar.bz2
podman-91baaee9a805e710fde8e4605434d79a20c67f7e.zip
goland autocorrections
just ran the autocorrect code corrections from goland and it found a few nits. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/network')
-rw-r--r--pkg/network/subnet.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/network/subnet.go b/pkg/network/subnet.go
index 82ab9a8c8..90f0cdfce 100644
--- a/pkg/network/subnet.go
+++ b/pkg/network/subnet.go
@@ -18,7 +18,7 @@ func incByte(subnet *net.IPNet, idx int, shift uint) error {
subnet.IP[idx] = 0
return incByte(subnet, idx-1, 0)
}
- subnet.IP[idx] += (1 << shift)
+ subnet.IP[idx] += 1 << shift
return nil
}
@@ -58,7 +58,7 @@ func LastIPInSubnet(addr *net.IPNet) (net.IP, error) { //nolint:interfacer
}
hostStart := ones / 8
// Handle the first host byte
- cidr.IP[hostStart] |= (0xff & cidr.Mask[hostStart])
+ cidr.IP[hostStart] |= 0xff & cidr.Mask[hostStart]
// Fill the rest with ones
for i := hostStart; i < len(cidr.IP); i++ {
cidr.IP[i] = 0xff