mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-11 18:54:31 +00:00
Fix complexity
This commit is contained in:
@@ -135,7 +135,8 @@ func (c *CommandConfig) UpdateImportPath() error {
|
||||
if strings.HasPrefix(currentPath, path) && len(currentPath) > len(path)+1 {
|
||||
importPath = currentPath[len(path)+1:]
|
||||
// Remove the source from the path if it is there
|
||||
if len(importPath) > 4 && (strings.ToLower(importPath[0:4]) == "src/" || strings.ToLower(importPath[0:4]) == "src\\") {
|
||||
isSRC := strings.ToLower(importPath[0:4])
|
||||
if len(importPath) > 4 && (isSRC = "src/" || isSRC == "src\\")) {
|
||||
importPath = importPath[4:]
|
||||
} else if importPath == "src" {
|
||||
if c.Index != VERSION {
|
||||
|
||||
Reference in New Issue
Block a user