Remove unnecessary branching

This commit is contained in:
Andrew Camilleri
2018-05-04 17:50:05 +02:00
parent 0fc770bbb1
commit 01069ed583

View File

@@ -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