fix: fix modifier empty str issue

上级 8c51b4c1
......@@ -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
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册