From 293e954736feda0cdd983a150020ee863c19a0a8 Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Sun, 9 Feb 2020 21:56:48 +0800 Subject: [PATCH] fix: fix modifier empty str issue --- pkg/domain/core_domain/code_field.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/domain/core_domain/code_field.go b/pkg/domain/core_domain/code_field.go index 65fbacc..4380632 100644 --- a/pkg/domain/core_domain/code_field.go +++ b/pkg/domain/core_domain/code_field.go @@ -11,7 +11,10 @@ func NewJField(typeType string, typeValue string, modifier string) CodeField { TypeValue: typeValue, TypeType: typeType, } - property.Modifiers = append(property.Modifiers, modifier) + + if modifier != "" { + property.Modifiers = append(property.Modifiers, modifier) + } return property } -- GitLab