fix(goctl): fix redundant import (#2551)

This commit is contained in:
anqiansong
2022-10-25 06:58:51 +08:00
committed by GitHub
parent ce73b9a85c
commit 9504d30049
6 changed files with 24 additions and 16 deletions

View File

@@ -14,8 +14,9 @@ func genImports(table Table, withCache, timeImport bool) (string, error) {
}
buffer, err := util.With("import").Parse(text).Execute(map[string]interface{}{
"time": timeImport,
"data": table,
"time": timeImport,
"containsPQ": table.ContainsPQ,
"data": table,
})
if err != nil {
return "", err
@@ -30,8 +31,9 @@ func genImports(table Table, withCache, timeImport bool) (string, error) {
}
buffer, err := util.With("import").Parse(text).Execute(map[string]interface{}{
"time": timeImport,
"data": table,
"time": timeImport,
"containsPQ": table.ContainsPQ,
"data": table,
})
if err != nil {
return "", err