From 2d093170c65f2a5b343ac303e1e387b0711ce94d Mon Sep 17 00:00:00 2001 From: owl352 Date: Sat, 21 Sep 2024 02:43:50 +0500 Subject: [PATCH] warning fix --- lib/services/dashd.js | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/lib/services/dashd.js b/lib/services/dashd.js index 42d94132b..9477f3abb 100644 --- a/lib/services/dashd.js +++ b/lib/services/dashd.js @@ -2282,23 +2282,17 @@ Dash.prototype.getDetailedTransaction = function(txid, callback) { if (result.proRegTx !== undefined) { tx.proRegTx = result.proRegTx; - } - if (result.proUpServTx !== undefined) { + }else if (result.proUpServTx !== undefined) { tx.proUpServTx = result.proUpServTx; - } - if (result.proUpRegTx !== undefined) { + }else if (result.proUpRegTx !== undefined) { tx.proUpRegTx = result.proUpRegTx; - } - if (result.proUpRevTx !== undefined) { + }else if (result.proUpRevTx !== undefined) { tx.proUpRevTx = result.proUpRevTx; - } - if (result.cbTx !== undefined) { + }else if (result.cbTx !== undefined) { tx.cbTx = result.cbTx; - } - if (result.qcTx !== undefined) { + }else if (result.qcTx !== undefined) { tx.qcTx = result.qcTx; - } - if (result.mnhfTx !== undefined) { + }else if (result.mnhfTx !== undefined) { tx.mnhfTx = result.mnhfTx; } }