Skip to content

Commit

Permalink
rewrite (zeromicro#194)
Browse files Browse the repository at this point in the history
Co-authored-by: kim <xutao@xiaoheiban.cn>
  • Loading branch information
kingxt and kim authored Nov 9, 2020
1 parent 95aa65e commit f32c6a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/goctl/api/new/newservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ service {{.name}}-api {

func NewService(c *cli.Context) error {
args := c.Args()
dirName := "greet"
if len(args) > 0 {
dirName = args.First()
dirName := args.First()
if len(dirName) == 0 {
dirName = "greet"
}

abs, err := filepath.Abs(dirName)
Expand Down

0 comments on commit f32c6a9

Please sign in to comment.