http: fix subtractFee validation.

This commit is contained in:
Christopher Jeffrey 2016-09-30 12:41:41 -07:00
parent 839a73f404
commit 0ca843e3ca
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -271,8 +271,8 @@ HTTPServer.prototype._init = function _init() {
options.subtractFee = params.subtractFee;
assert(utils.isUInt32(options.subtractFee), 'subtractFee must be a number.');
} else {
assert(typeof options.subtractFee === 'boolean', 'subtractFee must be a boolean.');
options.subtractFee = params.subtractFee;
assert(typeof options.subtractFee === 'boolean', 'subtractFee must be a boolean.');
}
}