Fix complexity

This commit is contained in:
xXlokerXx
2019-07-08 18:38:10 -05:00
parent 3f65e1ef41
commit 0b23b3e494

View File

@@ -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 {