Skip to content

Commit

Permalink
other lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Gealer committed Nov 14, 2022
1 parent 2c02068 commit 9529c97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ linters-settings:
strict: true

nolintlint:
allow-no-explanation: [funlen, gocognit, cyclop, lll]
allow-no-explanation: [funlen, gocognit, cyclop, gocyclo, lll]
require-explanation: true
require-specific: true

Expand Down
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func (c *Client) setRequestHeaders(req *http.Request, r io.Reader, textPlain boo
}

// Does the specified HTTP request.
func (c *Client) do(ctx context.Context, a clientArgs, clientOpts []ClientOption) error { //nolint:funlen,gocognit,cyclop
func (c *Client) do(ctx context.Context, a clientArgs, clientOpts []ClientOption) error { //nolint:funlen,gocognit,gocyclo
// Handle getting the body bytes.
var body []byte
textPlain := false
Expand Down Expand Up @@ -262,7 +262,7 @@ func (c *Client) do(ctx context.Context, a clientArgs, clientOpts []ClientOption

// Send the curl request to all the writers.
for _, v := range curlWriters {
if _, err := v.Write(curlB); err != nil {
if _, err = v.Write(curlB); err != nil {
return err
}
}
Expand Down

0 comments on commit 9529c97

Please sign in to comment.