Cleanup redundant else statements find via golint #11602

Signed-off-by: George MacRorie <gmacr31@gmail.com>
This commit is contained in:
George MacRorie 2015-03-23 19:21:37 +00:00 committed by Vincent Demeester
parent 01245d2619
commit cd08d97a64
1 changed files with 1 additions and 2 deletions

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.