mirror of https://github.com/k3s-io/k3s
use elseif to replace if
parent
47a431e82f
commit
c19fa9f60e
|
@ -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 '..'`)
|
||||
|
|
Loading…
Reference in New Issue