github sdk: add withClient options so we can override the default client, useful for adding unit tests with httptest.NewServer #1861
Annotations
4 errors
golangci-lint:
modules/github-bots/sdk/github_test.go#L59
unused-parameter: parameter 'r' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
modules/github-bots/sdk/github_test.go#L55
SA4009: argument client is overwritten before first use (staticcheck)
|
golangci-lint:
modules/github-bots/sdk/github_test.go#L76
SA4009(related information): assignment to client (staticcheck)
|
golangci-lint
issues found
|
Loading