mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-17 13:34:24 +01:00
Remove e: any from error handlers
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user