Don't break lines at 80 characters.
This commit is contained in:
parent
8a8412f04a
commit
3d9560c0c5
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue