From cd08d97a64f1775884e69e3e344347f5a222b2e0 Mon Sep 17 00:00:00 2001 From: George MacRorie Date: Mon, 23 Mar 2015 19:21:37 +0000 Subject: [PATCH] Cleanup redundant else statements find via golint #11602 Signed-off-by: George MacRorie --- opts/opts.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opts/opts.go b/opts/opts.go index e867c0a21d..df9decf61f 100644 --- a/opts/opts.go +++ b/opts/opts.go @@ -192,9 +192,8 @@ func ValidateMACAddress(val string) (string, error) { _, err := net.ParseMAC(strings.TrimSpace(val)) if err != nil { return "", err - } else { - return val, nil } + return val, nil } // Validates domain for resolvconf search configuration.