Skip to content

Commit ca59f72

Browse files
Fix build: replace unused @ts-expect-error with explicit type assertion
Co-authored-by: andrey-helldar <10347617+andrey-helldar@users.noreply.github.com>
1 parent 281fc75 commit ca59f72

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-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) {

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)