chore: coding style (#2120)

This commit is contained in:
Kevin Wan
2022-07-10 11:05:21 +08:00
committed by GitHub
parent 96acf1f5a6
commit 1c09db6d5d
11 changed files with 24 additions and 23 deletions

View File

@@ -60,7 +60,8 @@ func genHandler(dir, rootPkg string, cfg *config.Config, group spec.Group, route
}
func doGenToFile(dir, handler string, cfg *config.Config, group spec.Group,
route spec.Route, handleObj handlerInfo) error {
route spec.Route, handleObj handlerInfo,
) error {
filename, err := format.FileNamingFormat(cfg.NamingFormat, handler)
if err != nil {
return err