Remove unused catch binding variables in fs.mjs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Matt Isenhower 2026-02-22 10:09:17 -08:00
parent 6dac044a69
commit 941a6eb258

View File

@ -10,7 +10,7 @@ export async function exists(file) {
await fs.access(file);
return true;
} catch (e) {
} catch {
// Not on local disk; check VFS (S3 listing) as fallback
return (await vfs.has(file)) ?? false;
}
@ -22,7 +22,7 @@ export async function olderThan(file, cutoff) {
let stat = await fs.stat(file);
return stat.mtime < cutoff;
} catch (e) {
} catch {
// Not on local disk; check VFS (S3 listing) as fallback
const mtime = await vfs.getMtime(file);
if (mtime !== null) {