Cleanup redundant else statements find via golint #11602

Signed-off-by: George MacRorie <gmacr31@gmail.com>
Upstream-commit: cd08d97a64
Component: cli
This commit is contained in:
George MacRorie
2017-05-15 11:57:13 +02:00
committed by Vincent Demeester
parent 6c88b9b6c8
commit 5792f08680
+1 -2
View File
@@ -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.