代码生成细节处理

This commit is contained in:
yxh
2021-08-24 16:10:25 +08:00
parent 9e144100c1
commit 69fab9d8a6
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -665,11 +665,11 @@ func (s *toolsGenTable) writeDb(path string, ctx context.Context) (err error) {
if e == io.EOF {
break
}
if gstr.Trim(string(bytes)) == "" {
str := gstr.Trim(string(bytes))
if str == "" {
continue
}
bytes = bytes[:len(bytes)-2]
str := string(bytes)
if strings.Contains(str, "/*") {
isAnnotation = true