Clean code

This commit is contained in:
Ari Seyhun
2017-09-23 14:20:09 +09:30
committed by GitHub
parent 54ce8d3699
commit 3907c6575e

View File

@@ -151,10 +151,8 @@ func setApplicationPath(args []string) {
appPath = filepath.Join(srcRoot, filepath.FromSlash(importPath))
_, err = build.Import(importPath, "", build.FindOnly)
if err == nil {
if !empty(appPath) {
errorf("Abort: Import path %s already exists.\n", importPath)
}
if err == nil && !empty(appPath) {
errorf("Abort: Import path %s already exists.\n", importPath)
}
revelPkg, err = build.Import(revel.RevelImportPath, "", build.FindOnly)