Skip to content
Snippets Groups Projects
Commit ebac2ced authored by cjp's avatar cjp
Browse files

fix git checkout error

parent cf3acfdc
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,7 @@ func init() { ...@@ -64,7 +64,7 @@ func init() {
fs := flag.NewFlagSet("log_config", flag.ContinueOnError) fs := flag.NewFlagSet("log_config", flag.ContinueOnError)
logConfFile := fs.String("logConf", "", "default log config path") logConfFile := fs.String("logConf", "", "default log config path")
fs.Parse(os.Args[1:]) fs.Parse(os.Args[1:])
for len(fs.Args()) != 0{ for len(fs.Args()) != 0 {
fs.Parse(fs.Args()[1:]) fs.Parse(fs.Args()[1:])
} }
err := InitLog(*logConfFile) err := InitLog(*logConfFile)
......
...@@ -69,7 +69,7 @@ func init() { ...@@ -69,7 +69,7 @@ func init() {
fs.StringVar(&confProFile, "proConf", "", "default server config path") fs.StringVar(&confProFile, "proConf", "", "default server config path")
fs.StringVar(&confRouterFile, "rouConf", "", "default router config path") fs.StringVar(&confRouterFile, "rouConf", "", "default router config path")
fs.Parse(os.Args[1:]) fs.Parse(os.Args[1:])
for len(fs.Args()) != 0{ for len(fs.Args()) != 0 {
fs.Parse(fs.Args()[1:]) fs.Parse(fs.Args()[1:])
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment