mirror of https://github.com/databricks/cli.git
Change double negation to single check
This commit is contained in:
parent
04946d268a
commit
6a8c0524dd
|
@ -143,11 +143,10 @@ func (c *config) skipPrompt(p jsonschema.Property, r *renderer) (bool, error) {
|
||||||
for _, properties := range p.Schema.SkipPromptIf.AnyOf {
|
for _, properties := range p.Schema.SkipPromptIf.AnyOf {
|
||||||
match := true
|
match := true
|
||||||
for name, property := range properties.Properties {
|
for name, property := range properties.Properties {
|
||||||
if v, ok := c.values[name]; ok && v == property.Const {
|
if v, ok := c.values[name]; !ok || v != property.Const {
|
||||||
continue
|
|
||||||
}
|
|
||||||
match = false
|
match = false
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if match {
|
if match {
|
||||||
allFalse = false
|
allFalse = false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue