Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
Signed-off-by: reggie-k <[email protected]>
  • Loading branch information
reggie-k committed Jan 12, 2025
1 parent 458bd83 commit 9da78ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion cmd/argocd/commands/repocreds.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ func NewRepoCredsAddCommand(clientOpts *argocdclient.ClientOptions) *cobra.Comma
// Specifying bearerToken is only valid for HTTPS repositories
if repo.BearerToken != "" {
if !git.IsHTTPSURL(repo.URL) {

err := stderrors.New("--bearer-token is only supported for HTTPS repositories")
errors.CheckError(err)
}
Expand Down
2 changes: 1 addition & 1 deletion util/git/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,7 @@ func Test_nativeGitClient_CommitAndPush(t *testing.T) {
actualCommitHash := strings.TrimSpace(string(gitCurrentCommitHash))
require.Equal(t, expectedCommitHash, actualCommitHash)
}

func TestNewAuth(t *testing.T) {
tests := []struct {
name string
Expand All @@ -846,7 +847,6 @@ func TestNewAuth(t *testing.T) {
expected transport.AuthMethod
wantErr bool
}{

{
name: "HTTPSCreds with bearer token",
repoURL: "https://github.com/org/repo.git",
Expand Down

0 comments on commit 9da78ab

Please sign in to comment.