1
0
mirror of https://github.com/docker/cli.git synced 2026-01-19 21:41:31 +03:00

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
2015-03-23 19:21:37 +00:00
committed by Vincent Demeester
parent 6c88b9b6c8
commit 5792f08680

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.