Why Nostr? What is Njump?
2023-11-04 16:55:48
in reply to

Mitch Downey :pci: on Nostr: npub19v7lz…5al4a I’m pretty sure the try/catch block should handle when errors ...

I’m pretty sure the try/catch block should handle when errors are thrown, then the promise is set to null *after* the try/catch block, so it should always be set to null for success and failure cases.

In theory a function in the catch block could throw an error, but I inspected them and don’t think that’s a real possibility.

Thanks for the code review though :)
Author Public Key
npub1yfr5d05qj3qzz84kntze3c8accyz0unwczgm0fxuypuqdnenkwuqew6g6v