From 3231cffc5438383ffb40cf38292476ecd809e781 Mon Sep 17 00:00:00 2001 From: Ilya Kuznetsov Date: Tue, 17 Dec 2024 14:51:09 +0100 Subject: [PATCH] fix: Remove unnecessary `ok` check --- bundle/internal/schema/annotations.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bundle/internal/schema/annotations.go b/bundle/internal/schema/annotations.go index c0eefdcc6..9329c73d7 100644 --- a/bundle/internal/schema/annotations.go +++ b/bundle/internal/schema/annotations.go @@ -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