Skip to content

Commit

Permalink
chore(core): remove redundant 'recordExceptionInCurrentSpan' calls
Browse files Browse the repository at this point in the history
  • Loading branch information
vindard committed Feb 20, 2024
1 parent e6fe365 commit 8d020de
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/api/src/app/wallets/update-single-pending-invoice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ const processPendingInvoice = async ({
const lndService = LndService()
if (lndService instanceof Error) {
pendingInvoiceLogger.error("Unable to initialize LndService")
recordExceptionInCurrentSpan({ error: lndService })
return ProcessPendingInvoiceResult.err(lndService)
}

Expand Down Expand Up @@ -322,7 +321,6 @@ const lockedUpdatePendingInvoiceSteps = async ({
const lndService = LndService()
if (lndService instanceof Error) {
logger.error("Unable to initialize LndService")
recordExceptionInCurrentSpan({ error: lndService })
return ProcessPendingInvoiceResult.err(lndService)
}
// Returns 'true' on re-runs if invoice is already settled in lnd
Expand All @@ -332,7 +330,6 @@ const lockedUpdatePendingInvoiceSteps = async ({
})
if (invoiceSettled instanceof Error) {
logger.error({ paymentHash }, "Unable to settleInvoice")
recordExceptionInCurrentSpan({ error: invoiceSettled })
return ProcessPendingInvoiceResult.err(invoiceSettled)
}
}
Expand Down

0 comments on commit 8d020de

Please sign in to comment.