mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-03-21 17:54:13 -05:00
Remove unused catch binding variables in fs.mjs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
6dac044a69
commit
941a6eb258
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user