Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
pasha-codefresh committed Dec 13, 2023
1 parent 1b663cb commit 231e6a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions event_reporter/application/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package application
import (
"context"
"encoding/json"
"errors"
"fmt"
appclient "github.com/argoproj/argo-cd/v2/pkg/apiclient/application"
"github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1"
Expand Down Expand Up @@ -68,7 +67,7 @@ func (c *httpApplicationClient) execute(ctx context.Context, url string, result

isStatusOK := res.StatusCode >= 200 && res.StatusCode < 300
if !isStatusOK {
return errors.New(fmt.Sprintf("argocd server respond with code %d, msg is: %s", res.StatusCode, string(b)))
return fmt.Errorf("argocd server respond with code %d, msg is: %s", res.StatusCode, string(b))
}

err = json.Unmarshal(b, &result)
Expand Down

0 comments on commit 231e6a8

Please sign in to comment.