1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 19:00:55 +00:00

remove some space

This commit is contained in:
astaxie 2016-03-30 15:48:38 +08:00
parent caa404cec1
commit 734bbb3337

View File

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