From 81cea4d2245e223324df499467ca1ac0c39d8447 Mon Sep 17 00:00:00 2001 From: Casey Marshall Date: Sun, 19 Nov 2017 16:59:37 -0600 Subject: [PATCH] Fix remote index lookup when matching existing imports. --- cmd/importAdd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/importAdd.go b/cmd/importAdd.go index bca99e8..ff51f06 100644 --- a/cmd/importAdd.go +++ b/cmd/importAdd.go @@ -67,7 +67,7 @@ var importAddCmd = &cobra.Command{ return errors.Errorf("no such remote: %q", remoteName) } for i := range cfg.Node.Remotes[remoteIndex].Imports { - if cfg.Node.Remotes[i].Imports[i] == newImport { + if cfg.Node.Remotes[remoteIndex].Imports[i] == newImport { return nil } }