Skip to content

Commit 66d6262

Browse files
Merge pull request #123 from TheDragonCode/copilot/fix-tests-again
Fix build: replace unused @ts-expect-error with explicit type assertion
2 parents b000df1 + ca59f72 commit 66d6262

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

dist/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36343,7 +36343,6 @@ class Repository {
3634336343
if (response.status !== 200) {
3634436344
return "";
3634536345
}
36346-
// @ts-ignore
3634736346
return response.data;
3634836347
}
3634936348
catch (error) {

package-lock.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/repository.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ export class Repository {
219219
return "";
220220
}
221221

222-
// @ts-expect-error
223-
return response.data;
222+
return response.data as unknown as string;
224223
} catch (error) {
225224
// @ts-expect-error
226225
info(error.message);

0 commit comments

Comments
 (0)