From 53abfcacda124d781c79061178f9d8842fc157cd Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 1 Aug 2014 15:01:43 -0700 Subject: [PATCH] paypro: remove more unnecessary code. --- js/models/core/Wallet.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/models/core/Wallet.js b/js/models/core/Wallet.js index cbc4cf2d7..78cd2b68f 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -1012,9 +1012,7 @@ Wallet.prototype.sendPaymentTx = function(ntxid, options, cb) { var pay = new PayPro(); pay = pay.makePayment(); var merchant_data = txp.merchant.pr.pd.merchant_data; - if (typeof merchant_data === 'string') { - merchant_data = new Buffer(merchant_data, 'hex'); - } + merchant_data = new Buffer(merchant_data, 'hex'); pay.set('merchant_data', merchant_data); pay.set('transactions', [tx.serialize()]); pay.set('refund_to', refund_outputs);