mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 01:27:22 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user