chore: coding style (#3080)

master
Kevin Wan 2 years ago committed by GitHub
parent 1904af2323
commit ee555a85da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,11 +28,11 @@ func init() {
} }
func generateGateway(*cobra.Command, []string) error { func generateGateway(*cobra.Command, []string) error {
if err:=pathx.MkdirIfNotExist(varStringDir);err!=nil{ if err := pathx.MkdirIfNotExist(varStringDir); err != nil {
return err return err
} }
if _,err:=ctx.Prepare(varStringDir);err!=nil{ if _, err := ctx.Prepare(varStringDir); err != nil {
return err return err
} }

@ -19,7 +19,6 @@ var etcTemplate string
//go:embed gateway.tpl //go:embed gateway.tpl
var mainTemplate string var mainTemplate string
var templates = map[string]string{ var templates = map[string]string{
etcTemplateFileFile: etcTemplate, etcTemplateFileFile: etcTemplate,
mainTemplateFile: mainTemplate, mainTemplateFile: mainTemplate,

Loading…
Cancel
Save