Commit 734bbb33 authored by astaxie's avatar astaxie

remove some space

parent caa404ce
......@@ -175,9 +175,7 @@ func init() {
Outputs: map[string]string{"console": ""},
},
}
var err error
if AppPath, err = filepath.Abs(filepath.Dir(os.Args[0])); err != nil {
panic(err)
}
......@@ -185,7 +183,6 @@ func init() {
if err != nil {
panic(err)
}
appConfigPath = filepath.Join(workPath, "conf", "app.conf")
if !utils.FileExists(appConfigPath) {
appConfigPath = filepath.Join(AppPath, "conf", "app.conf")
......@@ -194,7 +191,6 @@ func init() {
return
}
}
if err = parseConfig(appConfigPath); err != nil {
panic(err)
}
......
Markdown is supported
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