fix: Remove unnecessary `ok` check

This commit is contained in:
Ilya Kuznetsov 2024-12-17 14:51:09 +01:00
parent 9f3ec3d0b4
commit 3231cffc54
1 changed files with 1 additions and 4 deletions

View File

@ -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