mirror of https://github.com/databricks/cli.git
fix: Remove unnecessary `ok` check
This commit is contained in:
parent
9f3ec3d0b4
commit
3231cffc54
|
@ -91,10 +91,7 @@ func (d *annotationHandler) addAnnotations(typ reflect.Type, s jsonschema.Schema
|
|||
}
|
||||
|
||||
for k, v := range s.Properties {
|
||||
item, ok := annotations[k]
|
||||
if !ok {
|
||||
item = annotation{}
|
||||
}
|
||||
item := annotations[k]
|
||||
if item.Description == "" {
|
||||
item.Description = Placeholder
|
||||
|
||||
|
|
Loading…
Reference in New Issue