Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer committed Feb 12, 2025
1 parent 50773a0 commit 89ddc74
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ class API {
// @ts-expect-error [TODO] - TS4111 - Property '_query' comes from an index signature, so it must be accessed with ['_query'].
const pageSize = Number(params._query.get("pageSize")) || 25;
if (search) {

const { pages, total } = await coll.store.queryPages(
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
search,
page,
pageSize,
Expand Down
2 changes: 1 addition & 1 deletion src/wacz/multiwacz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1046,8 +1046,8 @@ export class MultiWACZ
waczhash,
});
if (isSeed) {

const set: Set<string> =
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
this.seedPageWACZs.get(crawl_id) || new Set<string>();
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
set.add(filename);
Expand Down
6 changes: 4 additions & 2 deletions src/wacz/waczimporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class WACZImporter {

case "multi-wacz-package":
// [TODO]
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return await this.loadMultiWACZPackage(root);

default:
Expand All @@ -159,9 +159,11 @@ export class WACZImporter {

// [TODO]
// eslint-disable-next-line @typescript-eslint/no-explicit-any
async loadMultiWACZPackage(root: Record<string, any>) {
async loadMultiWACZPackage(root: any) {
this.file.markAsMultiWACZ();
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
await this.store.loadWACZFiles(root, this.file);
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return root;
}

Expand Down

0 comments on commit 89ddc74

Please sign in to comment.