From 636ac1ab5a4843d3d1aa44223115a4962288faa6 Mon Sep 17 00:00:00 2001 From: Marco Cano Date: Thu, 24 Jun 2021 13:26:45 -0700 Subject: [PATCH] fix: revert last, not issue --- src/query_results.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/query_results.js b/src/query_results.js index 40abd4c6..64c70a9b 100644 --- a/src/query_results.js +++ b/src/query_results.js @@ -39,14 +39,12 @@ module.exports = class QueryResult { update(queryResult) { debug(`Updating query results now!`); queryResult.map((record) => { - if (record && record !== undefined) { - this.results.push({ - node_bindings: this._createNodeBindings(record), - edge_bindings: this._createEdgeBindings(record), - //default score issue #200 - TODO: turn to evaluating module eventually - score: '1.0', - }); - } + this.results.push({ + node_bindings: this._createNodeBindings(record), + edge_bindings: this._createEdgeBindings(record), + //default score issue #200 - TODO: turn to evaluating module eventually + score: '1.0', + }); }); } };