Skip to content

Commit

Permalink
fix git checkout error
Browse files Browse the repository at this point in the history
  • Loading branch information
cjphaha committed Feb 1, 2021
1 parent cf3acfd commit ebac2ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func init() {
fs := flag.NewFlagSet("log_config", flag.ContinueOnError)
logConfFile := fs.String("logConf", "", "default log config path")
fs.Parse(os.Args[1:])
for len(fs.Args()) != 0{
for len(fs.Args()) != 0 {
fs.Parse(fs.Args()[1:])
}
err := InitLog(*logConfFile)
Expand Down
2 changes: 1 addition & 1 deletion config/config_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func init() {
fs.StringVar(&confProFile, "proConf", "", "default server config path")
fs.StringVar(&confRouterFile, "rouConf", "", "default router config path")
fs.Parse(os.Args[1:])
for len(fs.Args()) != 0{
for len(fs.Args()) != 0 {
fs.Parse(fs.Args()[1:])
}

Expand Down

0 comments on commit ebac2ce

Please sign in to comment.