Remove e: any from error handlers

This commit is contained in:
Alex Gleason
2024-11-22 10:26:30 -06:00
parent ebaf2b9c59
commit 4eb7ea2461
4 changed files with 9 additions and 9 deletions

View File

@@ -102,8 +102,8 @@ async function exportEvents(args: ExportFilter) {
let filter: NostrFilter = {};
try {
filter = buildFilter(args);
} catch (e: any) {
die(1, e.message || e.toString());
} catch (e) {
die(1, e instanceof Error ? e.message : e);
}
let count = 0;