Remove unused param

This commit is contained in:
Manav Rathi 2024-04-12 19:53:23 +05:30
parent ce869be158
commit 36f9ca2004
No known key found for this signature in database
2 changed files with 1 additions and 5 deletions

View file

@ -148,7 +148,6 @@ class DownloadManagerImpl {
}
const cacheResp: Response = await this.diskFileCache?.match(
file.id.toString(),
{ sizeInBytes: file.info?.fileSize },
);
return cacheResp?.clone();
} catch (e) {

View file

@ -9,10 +9,7 @@ const cacheNames = [
export type CacheName = (typeof cacheNames)[number];
export interface LimitedCache {
match: (
key: string,
options?: { sizeInBytes?: number },
) => Promise<Response>;
match: (key: string) => Promise<Response>;
put: (key: string, data: Response) => Promise<void>;
delete: (key: string) => Promise<boolean>;
}