Updated comparison operator
This commit is contained in:
parent
1efed08a39
commit
d689045002
@ -426,7 +426,7 @@ P2P.prototype._setListeners = function() {
|
|||||||
P2P.prototype._setResourceFilter = function(filter) {
|
P2P.prototype._setResourceFilter = function(filter) {
|
||||||
|
|
||||||
// FLOSight Error Correction from RanchiMall 17th May 2021. removed the unhandled assert and replaced by looging of error
|
// FLOSight Error Correction from RanchiMall 17th May 2021. removed the unhandled assert and replaced by looging of error
|
||||||
if (filter = false || filter.startHash = false) {
|
if (filter == false || filter.startHash == false) {
|
||||||
log.error('A "startHash" field is required to retrieve headers or blocks');
|
log.error('A "startHash" field is required to retrieve headers or blocks');
|
||||||
}
|
}
|
||||||
// assert(filter && filter.startHash, 'A "startHash" field is required to retrieve headers or blocks');
|
// assert(filter && filter.startHash, 'A "startHash" field is required to retrieve headers or blocks');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user