Skip to content

Commit

Permalink
feat: ignore empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
tr1v3r committed Jun 13, 2022
1 parent 35dfde7 commit a080ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/model/tbl_column.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (c *Column) defaultTagValue() string {
if !ok {
return ""
}
if strings.TrimSpace(value) == "" {
if value != "" && strings.TrimSpace(value) == "" {
return "'" + value + "'"
}
return value
Expand Down

0 comments on commit a080ff8

Please sign in to comment.