From 3d9560c0c5f2f7b9417c28196a783881899b81fa Mon Sep 17 00:00:00 2001 From: David de Kloet Date: Sat, 16 May 2015 22:50:44 +0200 Subject: [PATCH] Don't break lines at 80 characters. --- lib/transaction/transaction.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/transaction/transaction.js b/lib/transaction/transaction.js index de2582eec..2839e798e 100644 --- a/lib/transaction/transaction.js +++ b/lib/transaction/transaction.js @@ -217,8 +217,7 @@ Transaction.prototype._isFeeDifferent = function() { var fee = this._fee; var unspent = this._getUnspentValue(); if (fee !== unspent) { - return new errors.Transaction.FeeError.Different( - 'Unspent value is ' + unspent + ' but specified fee is ' + fee); + return new errors.Transaction.FeeError.Different('Unspent value is ' + unspent + ' but specified fee is ' + fee); } } }; @@ -231,11 +230,9 @@ Transaction.prototype._isFeeTooLarge = function(opts) { var maximumFee = Math.floor(Transaction.FEE_SECURITY_MARGIN * this._estimateFee()); if (fee > maximumFee) { if (this._missingChange()) { - return new errors.Transaction.ChangeAddressMissing( - 'Fee is too large and no change address was provided'); + return new errors.Transaction.ChangeAddressMissing( 'Fee is too large and no change address was provided'); } - return new errors.Transaction.FeeError.TooLarge( - 'expected less than ' + maximumFee + ' but got ' + fee); + return new errors.Transaction.FeeError.TooLarge('expected less than ' + maximumFee + ' but got ' + fee); } }; @@ -246,8 +243,7 @@ Transaction.prototype._isFeeTooSmall = function(opts) { var fee = this._getUnspentValue(); var minimumFee = Math.ceil(this._estimateFee() / Transaction.FEE_SECURITY_MARGIN); if (fee < minimumFee) { - return new errors.Transaction.FeeError.TooSmall( - 'expected more than ' + minimumFee + ' but got ' + fee); + return new errors.Transaction.FeeError.TooSmall('expected more than ' + minimumFee + ' but got ' + fee); } };