From 0fccfd7f80b10c8336037c16b69e26bb65c0f604 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 12 Apr 2024 11:02:25 -0400 Subject: [PATCH] clean up --- .../quartz/signers/NostrSignerExternal.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/quartz/src/main/java/com/vitorpamplona/quartz/signers/NostrSignerExternal.kt b/quartz/src/main/java/com/vitorpamplona/quartz/signers/NostrSignerExternal.kt index d07d26a56..0ff8dbce2 100644 --- a/quartz/src/main/java/com/vitorpamplona/quartz/signers/NostrSignerExternal.kt +++ b/quartz/src/main/java/com/vitorpamplona/quartz/signers/NostrSignerExternal.kt @@ -94,7 +94,7 @@ class NostrSignerExternal( Log.d("NostrExternalSigner", "Encrypt NIP04 Event: $decryptedContent") } - return launcher.encrypt( + launcher.encrypt( decryptedContent, toPublicKey, SignerType.NIP04_ENCRYPT, @@ -111,7 +111,7 @@ class NostrSignerExternal( Log.d("NostrExternalSigner", "Decrypt NIP04 Event: $encryptedContent") } - return launcher.decrypt( + launcher.decrypt( encryptedContent, fromPublicKey, SignerType.NIP04_DECRYPT, @@ -128,7 +128,7 @@ class NostrSignerExternal( Log.d("NostrExternalSigner", "Encrypt NIP44 Event: $decryptedContent") } - return launcher.encrypt( + launcher.encrypt( decryptedContent, toPublicKey, SignerType.NIP44_ENCRYPT, @@ -145,7 +145,7 @@ class NostrSignerExternal( Log.d("NostrExternalSigner", "Decrypt NIP44 Event: $encryptedContent") } - return launcher.decrypt( + launcher.decrypt( encryptedContent, fromPublicKey, SignerType.NIP44_DECRYPT, @@ -157,7 +157,7 @@ class NostrSignerExternal( event: LnZapRequestEvent, onReady: (LnZapPrivateEvent) -> Unit, ) { - return launcher.decryptZapEvent(event) { jsonEvent -> + launcher.decryptZapEvent(event) { jsonEvent -> try { (Event.fromJson(jsonEvent) as? LnZapPrivateEvent)?.let { onReady(it) } } catch (e: Exception) {