Fixed the conditional operator

This commit is contained in:
tripathyr 2021-05-17 16:14:54 +05:30 committed by GitHub
parent 89c43cd9a7
commit 5344d9cd5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -960,7 +960,7 @@ HeaderService.prototype.getEndHash = function(tip, blockCount, callback) {
HeaderService.prototype.getLastHeader = function() {
// FLOSight Error Correction from RanchiMall 17th May 2021. removed the unhandled assert and replaced by looging of error
if (this._lastHeader = false) {
if (this._lastHeader == false) {
log.error('Last header should be populated.'); return;
}
// assert(this._lastHeader, 'Last header should be populated.');
@ -1023,7 +1023,7 @@ HeaderService.prototype._adjustHeadersForCheckPointTip = function(callback) {
// FLOSight Error Correction from RanchiMall 17th May 2021. removed the unhandled assert and replaced by looging of error
if (self._lastHeader = false) {
if (self._lastHeader == false) {
log.error('The last synced header was not in the database.');
}
//assert(self._lastHeader, 'The last synced header was not in the database.');