fix-break-line

This commit is contained in:
stevenzack
2020-08-14 10:35:35 +08:00
committed by Kevin Wan
parent 926d746df5
commit de2f8c06fb
3 changed files with 48 additions and 42 deletions

View File

@@ -2,6 +2,7 @@ package ktgen
import (
"errors"
"github.com/tal-tech/go-zero/core/lang"
"github.com/tal-tech/go-zero/tools/goctl/api/parser"
"github.com/urfave/cli"
@@ -25,12 +26,12 @@ func KtCommand(c *cli.Context) error {
if e != nil {
return e
}
api,e:=p.Parse()
if e!=nil {
return e
api, e := p.Parse()
if e != nil {
return e
}
lang.Must(genBase(dir,pkg,api))
lang.Must(genApi(dir,pkg, api))
lang.Must(genBase(dir, pkg, api))
lang.Must(genApi(dir, pkg, api))
return nil
}