use elseif to replace if
This commit is contained in:
@@ -283,8 +283,7 @@ func IsConfigMapKey(value string) []string {
|
||||
}
|
||||
if value == "." {
|
||||
errs = append(errs, `must not be '.'`)
|
||||
}
|
||||
if value == ".." {
|
||||
} else if value == ".." {
|
||||
errs = append(errs, `must not be '..'`)
|
||||
} else if strings.HasPrefix(value, "..") {
|
||||
errs = append(errs, `must not start with '..'`)
|
||||
|
Reference in New Issue
Block a user