mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-22 15:05:26 +00:00
Clean code
This commit is contained in:
@@ -151,10 +151,8 @@ func setApplicationPath(args []string) {
|
|||||||
appPath = filepath.Join(srcRoot, filepath.FromSlash(importPath))
|
appPath = filepath.Join(srcRoot, filepath.FromSlash(importPath))
|
||||||
|
|
||||||
_, err = build.Import(importPath, "", build.FindOnly)
|
_, err = build.Import(importPath, "", build.FindOnly)
|
||||||
if err == nil {
|
if err == nil && !empty(appPath) {
|
||||||
if !empty(appPath) {
|
errorf("Abort: Import path %s already exists.\n", importPath)
|
||||||
errorf("Abort: Import path %s already exists.\n", importPath)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
revelPkg, err = build.Import(revel.RevelImportPath, "", build.FindOnly)
|
revelPkg, err = build.Import(revel.RevelImportPath, "", build.FindOnly)
|
||||||
|
|||||||
Reference in New Issue
Block a user