From 5344d9cd5b2592b3936303e6cfc5e5051ac1b16f Mon Sep 17 00:00:00 2001 From: tripathyr Date: Mon, 17 May 2021 16:14:54 +0530 Subject: [PATCH] Fixed the conditional operator --- lib/services/header/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/services/header/index.js b/lib/services/header/index.js index a51f6594..4f2bb78b 100644 --- a/lib/services/header/index.js +++ b/lib/services/header/index.js @@ -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.');