Loading
refactor: enable errcheck linter
I think, the errcheck is useful linter.
Enable the errcheck linter and fix the reported issues in library code:
PublishPackageFile: return the error fromreq.SetBody.NewAuthSourceClient: return the error fromsetBaseURL.- Explicitly ignore errors from
limiter.WaitinconfigureLimiter(fails silently by design) and from draining the response body inDo.
errcheck is excluded for test files: unchecked errors from mock HTTP handlers don't affect test results.
Edited by Oleksandr Redko