Skip to content

Conversation

@mihaitodor
Copy link
Contributor

@mihaitodor mihaitodor commented Mar 18, 2023

LE: Looks like the PR liniting time went down from 7 to 2 minutes

if mediaType, params, err = mime.ParseMediaType(contentType); err != nil {
h.log.Warnf("Failed to parse media type from Content-Type header: %v\n", err)
}
err = nil
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makes more sense for this method to not use named return parameters

- gogritic is very slow (golangci-lint v1.52.0)
- wastedassign received support for generics: golangci/golangci-lint#3689
- Refactor httpclient.Client.ResponseToBatch to fix wastedassign
warning
Copy link
Collaborator

@Jeffail Jeffail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Niccceeeee, thanks for looking into this, that's a massive win ❤️

@Jeffail Jeffail merged commit 5d8ea71 into redpanda-data:main Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants