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