Fix no shadow issues in api-client.ts

Duplicate use of "_" placeholder argument name. This change may conflict
with #192.
This commit is contained in:
Eric Cornelissen 2020-11-19 22:42:13 +01:00
parent 22f779c5e6
commit b54c2aab11

View file

@ -34,7 +34,7 @@ export const getApiClient = function (
throw new Error("Invalid API call in local run");
}
const customOctokit = githubUtils.GitHub.plugin(retry.retry, (octokit, _) => {
octokit.hook.after("request", (response: OctokitResponse<any>, _) => {
octokit.hook.after("request", (response: OctokitResponse<any>, __) => {
if (response.status < 400 && !possibleFailureExpected) {
if (hasBeenWarnedAboutVersion) {
return;