Skip to content

Commit 7ebaec6

Browse files
committed
lint
1 parent fd0ab55 commit 7ebaec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.generator/src/generator/templates/model_oneof.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func (obj *{{ name }}) UnmarshalJSON(data []byte) error {
6363
if err == nil {
6464
if obj.{{ attributeName }} != nil {% if oneOf.get("type", "object") == "object" %}&& obj.{{ attributeName }}.UnparsedObject == nil {% endif %}{
6565
json{{ attributeName }}, _ := datadog.Marshal(obj.{{ attributeName }})
66-
if string(json{{ attributeName }}) == "{}"{% if not oneOf|is_primitive and not oneOf.required %} && string(data) != "{}" {% endif %} { // empty struct
66+
if string(json{{ attributeName }}) == "{}"{% if not oneOf|is_primitive and not oneOf.required %} && string(data) != "{}" {% endif %} { // empty struct
6767
obj.{{ attributeName }} = nil
6868
} else {
6969
match++

0 commit comments

Comments
 (0)