Skip to content

Commit 0fd6041

Browse files
committed
fix: replace @ts-ignore with @ts-expect-error per eslint rules
1 parent 859e191 commit 0fd6041

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lambdas/functions/control-plane/src/github/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ async function createAuth(installationId: number | undefined, ghesApiUrl: string
135135

136136
logger.debug(`GHES API URL: ${ghesApiUrl}`);
137137
if (ghesApiUrl) {
138-
// @ts-ignore - Type mismatch between @octokit/request and @octokit/types versions
138+
// @ts-expect-error - Type mismatch between @octokit/request and @octokit/types versions
139139
authOptions.request = request.defaults({
140140
baseUrl: ghesApiUrl,
141141
});

lambdas/functions/termination-watcher/src/deregister.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async function createAuthenticatedClient(ghesApiUrl: string): Promise<Octokit> {
6666
if (ghesApiUrl) {
6767
authOptions.request = request.defaults({ baseUrl: ghesApiUrl });
6868
}
69-
// @ts-ignore - Type mismatch between @octokit/request and @octokit/auth-app versions
69+
// @ts-expect-error - Type mismatch between @octokit/request and @octokit/auth-app versions
7070
const auth = createAppAuth(authOptions);
7171
const appAuth = await auth({ type: 'app' });
7272
return createOctokitInstance(appAuth.token, ghesApiUrl);
@@ -113,7 +113,7 @@ async function createInstallationClient(
113113
if (ghesApiUrl) {
114114
authOptions.request = request.defaults({ baseUrl: ghesApiUrl });
115115
}
116-
// @ts-ignore - Type mismatch between @octokit/request and @octokit/auth-app versions
116+
// @ts-expect-error - Type mismatch between @octokit/request and @octokit/auth-app versions
117117
const auth = createAppAuth(authOptions);
118118
const installationAuth = await auth({ type: 'installation' });
119119
return createOctokitInstance(installationAuth.token, ghesApiUrl);

0 commit comments

Comments
 (0)