Closed cbandy closed 2 weeks ago
This is part of the bugs preset of golangci-lint. I want to enable this entire preset eventually.
bugs
The check-error-free-encoding setting is recommended upstream and simplifies code where json.Marshal is known to succeed.
check-error-free-encoding
json.Marshal
Checklist:
Type of Changes:
Some recent results compared to the ones in this PR.
This is part of the
bugs
preset of golangci-lint. I want to enable this entire preset eventually.The
check-error-free-encoding
setting is recommended upstream and simplifies code wherejson.Marshal
is known to succeed.Checklist:
Type of Changes: