From 292e38a1443b030d2b41e3bc570e25f104d6ecca Mon Sep 17 00:00:00 2001 From: Doug Davis Date: Fri, 5 Jun 2015 09:44:10 -0700 Subject: [PATCH] Remove duplicate call to net.ParseIP and a little cleanup Signed-off-by: Doug Davis --- opts/ip.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opts/ip.go b/opts/ip.go index f8a493e68a..90360056f7 100644 --- a/opts/ip.go +++ b/opts/ip.go @@ -22,10 +22,10 @@ func (o *IpOpt) Set(val string) error { if ip == nil { return fmt.Errorf("%s is not an ip address", val) } - (*o.IP) = net.ParseIP(val) + *o.IP = ip return nil } func (o *IpOpt) String() string { - return (*o.IP).String() + return o.IP.String() }