qt, refactor: remove redundant scope in TransactionDesc::FormatTxStatus()

This commit is contained in:
w0xlt committed 2022-02-24 13:47:53 -03:00
1 parent f1ce67f09f
commit b1bc1431db
1 file changed
-2
-2
View File
@@ -34,7 +34,6 @@ using wallet::isminetype;
QString TransactionDesc::FormatTxStatus(const interfaces::WalletTx& wtx, const interfaces::WalletTxStatus& status, bool inMempool, int numBlocks) QString TransactionDesc::FormatTxStatus(const interfaces::WalletTx& wtx, const interfaces::WalletTxStatus& status, bool inMempool, int numBlocks)
{ {
{
int nDepth = status.depth_in_main_chain; int nDepth = status.depth_in_main_chain;
if (nDepth < 0) { if (nDepth < 0) {
return tr("conflicted with a transaction with %1 confirmations").arg(-nDepth); return tr("conflicted with a transaction with %1 confirmations").arg(-nDepth);
@@ -46,7 +45,6 @@ QString TransactionDesc::FormatTxStatus(const interfaces::WalletTx& wtx, const i
} else { } else {
return tr("%1 confirmations").arg(nDepth); return tr("%1 confirmations").arg(nDepth);
} }
}
} }
// Takes an encoded PaymentRequest as a string and tries to find the Common Name of the X.509 certificate // Takes an encoded PaymentRequest as a string and tries to find the Common Name of the X.509 certificate