Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
  • Loading branch information
Rabbbit committed Jan 4, 2021
1 parent 1f1f4e7 commit 3e0720c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/actions/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ func GenApis(ctx *cli.Context) error {
}

varsFile, err := os.Create(filepath.Join(dir, "vars.go"))
fmt.Println(color.GreenString("%s create", filepath.Join(dir, "vars.go")))
if err != nil {
return err
}
fmt.Println(color.GreenString("%s create", filepath.Join(dir, "vars.go")))
if err = codegen.NewTypesInfo(varsFile, apiFileMerge, "api").GenCode(); err != nil {
return err
}
Expand Down

0 comments on commit 3e0720c

Please sign in to comment.