http: fix subtractFee validation.
This commit is contained in:
parent
839a73f404
commit
0ca843e3ca
@ -271,8 +271,8 @@ HTTPServer.prototype._init = function _init() {
|
|||||||
options.subtractFee = params.subtractFee;
|
options.subtractFee = params.subtractFee;
|
||||||
assert(utils.isUInt32(options.subtractFee), 'subtractFee must be a number.');
|
assert(utils.isUInt32(options.subtractFee), 'subtractFee must be a number.');
|
||||||
} else {
|
} else {
|
||||||
assert(typeof options.subtractFee === 'boolean', 'subtractFee must be a boolean.');
|
|
||||||
options.subtractFee = params.subtractFee;
|
options.subtractFee = params.subtractFee;
|
||||||
|
assert(typeof options.subtractFee === 'boolean', 'subtractFee must be a boolean.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user