Avoid `using` syntax

merge-requests/3241/head
Alex Gleason 2024-11-10 01:15:14 -06:00
rodzic 1cbebd0dc2
commit c6a3c19611
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -21,7 +21,7 @@ function logInNostr(signer: NostrSigner, relay: NRelay1) {
let authorizedPubkey: string | undefined; let authorizedPubkey: string | undefined;
using bunker = new NBunker({ const bunker = new NBunker({
relay, relay,
userSigner: signer, userSigner: signer,
bunkerSigner: authorization.signer, bunkerSigner: authorization.signer,
@ -64,6 +64,7 @@ function logInNostr(signer: NostrSigner, relay: NRelay1) {
}); });
await dispatch(verifyCredentials(accessToken)); await dispatch(verifyCredentials(accessToken));
bunker.close();
}; };
} }