Cleanup redundant else statements find via golint #11602
Signed-off-by: George MacRorie <gmacr31@gmail.com>
This commit is contained in:
committed by
Vincent Demeester
parent
01245d2619
commit
cd08d97a64
+1
-2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user