diff --git a/revel/new.go b/revel/new.go index f438402..c47b147 100644 --- a/revel/new.go +++ b/revel/new.go @@ -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)