1
0
mirror of https://github.com/beego/bee.git synced 2024-11-24 03:20:55 +00:00

Fix staticcheck failed - error strings should not be capitalized (ST1005)

This commit is contained in:
Tavee Khunbida 2019-01-08 01:08:03 +07:00
parent 22af6cc712
commit 4d1304b78c

View File

@ -328,7 +328,7 @@ func CheckEnv(appname string) (apppath, packpath string, err error) {
apppath = filepath.Join(gosrcpath, appname) apppath = filepath.Join(gosrcpath, appname)
if _, e := os.Stat(apppath); !os.IsNotExist(e) { if _, e := os.Stat(apppath); !os.IsNotExist(e) {
err = fmt.Errorf("Cannot create application without removing '%s' first", apppath) err = fmt.Errorf("cannot create application without removing '%s' first", apppath)
beeLogger.Log.Errorf("Path '%s' already exists", apppath) beeLogger.Log.Errorf("Path '%s' already exists", apppath)
return return
} }