Skip to content

Commit

Permalink
fix minor misplacement (#98)
Browse files Browse the repository at this point in the history
* fix minor misplacement

Signed-off-by: Maroon Ayoub <maroon.ayoub@ibm.com>

* fix gitrepo.go lint

Signed-off-by: Mike Ng <ming@redhat.com>

Co-authored-by: Mike Ng <ming@redhat.com>
  • Loading branch information
vMaroon and mikeshng authored Mar 7, 2022
1 parent 66fbdb8 commit a6fa043
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/utils/gitrepo.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,11 @@ func CloneGitRepo(cloneOptions *GitCloneOption) (commitID string, err error) {
if err != nil {
klog.Error("Failed to get Git clone options with the primary channel. Trying the secondary channel.")

options, err = getConnectionOptions(cloneOptions, false)
usingPrimary = false

options, err = getConnectionOptions(cloneOptions, false)
if err != nil {
klog.Error("Failed to get Git clone options with the secondary channel.")

usingPrimary = false

return "", err
}
}
Expand Down

0 comments on commit a6fa043

Please sign in to comment.