From 01069ed58356d3e278380c3ac01ff5de6f74feb8 Mon Sep 17 00:00:00 2001 From: Andrew Camilleri Date: Fri, 4 May 2018 17:50:05 +0200 Subject: [PATCH] Remove unnecessary branching --- BTCPayServer/HostedServices/InvoiceWatcher.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/BTCPayServer/HostedServices/InvoiceWatcher.cs b/BTCPayServer/HostedServices/InvoiceWatcher.cs index 4792cf594..2e98b1847 100644 --- a/BTCPayServer/HostedServices/InvoiceWatcher.cs +++ b/BTCPayServer/HostedServices/InvoiceWatcher.cs @@ -97,16 +97,11 @@ namespace BTCPayServer.HostedServices } } - if (!isPaid && invoice.GetPayments().Count != 0) + if (!isPaid && invoice.ExceptionStatus != "paidPartial" && invoice.GetPayments().Count != 0) { - if (invoice.ExceptionStatus != "paidPartial") - { invoice.ExceptionStatus = "paidPartial"; context.MarkDirty(); - } } - - } // Just make sure RBF did not cancelled a payment