Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Fix remote index lookup when matching existing imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
Casey Marshall committed Nov 19, 2017
1 parent c870d1a commit 81cea4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/importAdd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 81cea4d

Please sign in to comment.