mirror of https://github.com/docker/cli.git
Cleanup redundant else statements find via golint #11602
Signed-off-by: George MacRorie <gmacr31@gmail.com>
This commit is contained in:
parent
01245d2619
commit
cd08d97a64
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue