http: fix subtractFee validation.
This commit is contained in:
parent
f5a8cb3ec0
commit
60eec9e0a0
@ -274,8 +274,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.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user