mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-10 09:34:30 +01:00
Remove unnecessary branching
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user