Skip to content

Commit

Permalink
event-reporter: fixed lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-codefresh committed Nov 13, 2024
1 parent b348e9a commit 78094d6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion event_reporter/application/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (c *httpApplicationClient) GetManifests(ctx context.Context, in *appclient.
}
if in.SourcePositions != nil && len(in.SourcePositions) > 0 {
for _, sourcePosition := range in.SourcePositions {
params = fmt.Sprintf("%s&sourcePositions=%s", params, sourcePosition)
params = fmt.Sprintf("%s&sourcePositions=%d", params, sourcePosition)
}
}
if in.Revisions != nil && len(in.Revisions) > 0 {
Expand Down
3 changes: 2 additions & 1 deletion event_reporter/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package controller

import (
"context"
"github.com/argoproj/argo-cd/v2/util/db"
"math"
"strings"
"time"

"github.com/argoproj/argo-cd/v2/util/db"

appclient "github.com/argoproj/argo-cd/v2/event_reporter/application"

log "github.com/sirupsen/logrus"
Expand Down
7 changes: 4 additions & 3 deletions event_reporter/reporter/application_event_reporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import (
"context"
"encoding/json"
"fmt"
"github.com/argoproj/argo-cd/v2/util/db"
"github.com/argoproj/argo-cd/v2/util/settings"
"k8s.io/client-go/kubernetes/fake"
"net/http"
"testing"
"time"

"github.com/argoproj/argo-cd/v2/util/db"
"github.com/argoproj/argo-cd/v2/util/settings"
"k8s.io/client-go/kubernetes/fake"

"github.com/aws/smithy-go/ptr"
"github.com/sirupsen/logrus"
"github.com/stretchr/testify/mock"
Expand Down

0 comments on commit 78094d6

Please sign in to comment.