mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-14 11:54:40 +00:00
Clean code
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user