Delete some redundant code

Delete some redundant code

Kubernetes-commit: 9a25d46e8b5c079d97b909bb6e0bc1c1399c3e8c
This commit is contained in:
xichengliudui
2018-11-13 03:28:31 -05:00
committed by Kubernetes Publisher
parent 77c598ed24
commit c2d0ac0df3
2 changed files with 3 additions and 5 deletions

View File

@@ -1195,7 +1195,6 @@ func IsValidPathSegmentPrefix(name string) []string {
func ValidatePathSegmentName(name string, prefix bool) []string {
if prefix {
return IsValidPathSegmentPrefix(name)
} else {
return IsValidPathSegmentName(name)
}
return IsValidPathSegmentName(name)
}