Skip to content

Commit 7f42508

Browse files
committed
Swallow error closing stream see denoland/deno#15442
1 parent 8ab61d5 commit 7f42508

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/core/file.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ export async function visitLines(
3232
count += 1;
3333
}
3434
} finally {
35-
file.close();
35+
try {
36+
file.close();
37+
} catch {
38+
// Swallow error see https://github.com/denoland/deno/issues/15442
39+
}
3640
}
3741
}
3842
}

0 commit comments

Comments
 (0)