fix: build errors (#1959)

This commit is contained in:
Prateek Shourya
2024-12-17 18:39:13 +05:30
committed by GitHub
parent 905c1cca19
commit 9609fa0e33

View File

@@ -174,7 +174,7 @@ export const clearOPFS = async (force = false) => {
return;
}
// ts-ignore
for await (const entry of root.values()) {
for await (const entry of (root as any)?.values()) {
if (entry.kind === "directory" && entry.name.startsWith(".ahp-")) {
// A lock with the same name as the directory protects it from
// being deleted.