Skip to content

Commit f3b64a3

Browse files
committed
chore: remove dupe onFailure logging
1 parent a7e9c33 commit f3b64a3

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

app/src/main/java/to/bitkit/androidServices/LightningNodeService.kt

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,11 @@ class LightningNodeService : Service() {
7979
if (event !is Event.PaymentReceived && event !is Event.OnchainTransactionReceived) return
8080
val command = NotifyPaymentReceived.Command.from(event, includeNotification = true) ?: return
8181

82-
notifyPaymentReceivedHandler(command)
83-
.onSuccess {
84-
Logger.debug("Payment notification result: $it", context = TAG)
85-
if (it !is NotifyPaymentReceived.Result.ShowNotification) return
86-
showPaymentNotification(it.sheet, it.notification)
87-
}
88-
.onFailure {
89-
Logger.error("Failed to handle payment notification", it, context = TAG)
90-
}
82+
notifyPaymentReceivedHandler(command).onSuccess {
83+
Logger.debug("Payment notification result: $it", context = TAG)
84+
if (it !is NotifyPaymentReceived.Result.ShowNotification) return
85+
showPaymentNotification(it.sheet, it.notification)
86+
}
9187
}
9288

9389
private fun showPaymentNotification(

0 commit comments

Comments
 (0)