From 5c0ec256954de047cabdb2b8caf71bde80609412 Mon Sep 17 00:00:00 2001 From: ston1th Date: Sun, 7 Nov 2021 10:52:48 +0100 Subject: [PATCH] linter changes --- alloc.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/alloc.go b/alloc.go index 2ad4bed..a116a79 100644 --- a/alloc.go +++ b/alloc.go @@ -47,15 +47,15 @@ func (a *GenericAlloc) Alloc() (ip *net.IPAddr, err error) { pos := c.Next() last := c.Last() for ; pos != nil && pos != last; pos = c.Next() { - net := &net.IPAddr{IP: pos.IP} - cidr := a.CIDR(net) + n := &net.IPAddr{IP: pos.IP} + cidr := a.CIDR(n) ok, e := a.store.Exists(cidr) if e != nil { return nil, e } if !ok { a.store.Add(cidr) - ip = net + ip = n return } }