From 6295642f208d322c93116b5e7354559300d5d161 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 5 Dec 2015 20:23:33 -0800 Subject: [PATCH] remove useless if statement. --- lib/bcoin/tx.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/bcoin/tx.js b/lib/bcoin/tx.js index 40445e3e..c49cf046 100644 --- a/lib/bcoin/tx.js +++ b/lib/bcoin/tx.js @@ -158,8 +158,7 @@ TX.prototype.scriptInput = function(input, pub, nsigs) { for (var i = 0; i < m; i++) input.script[i + 1] = constants.opcodes['0']; // P2SH requires the redeem script after signatures - if (bcoin.script.isScripthash(s)) - input.script.push(pub); + input.script.push(pub); return; }