Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Prema devi Kuppuswamy <[email protected]>
  • Loading branch information
premadk committed Oct 25, 2023
1 parent a420b3a commit ef19a29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions pkg/services/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package services
import (
"bytes"
"fmt"
"github.com/hashicorp/go-retryablehttp"
"io"
"net/http"
"strings"
texttemplate "text/template"
"time"

"github.com/hashicorp/go-retryablehttp"

log "github.com/sirupsen/logrus"

httputil "github.com/argoproj/notifications-engine/pkg/util/http"
Expand Down Expand Up @@ -181,4 +182,4 @@ func (r *request) execute(service *webhookService) (*http.Response, error) {
client.RetryMax = service.opts.RetryMax

return client.Do(req)
}
}

Check failure on line 185 in pkg/services/webhook.go

View workflow job for this annotation

GitHub Actions / Lint Go code

File is not `goimports`-ed with -local github.com/argoproj/notifications-engine (goimports)
2 changes: 1 addition & 1 deletion pkg/services/webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,4 @@ func TestWebhookService_Send_Retry(t *testing.T) {
if count != 4 {
t.Errorf("Expected 4 requests, got %d", count)
}
}
}

Check failure on line 163 in pkg/services/webhook_test.go

View workflow job for this annotation

GitHub Actions / Lint Go code

File is not `goimports`-ed with -local github.com/argoproj/notifications-engine (goimports)

0 comments on commit ef19a29

Please sign in to comment.