From 6743b785c9f75c0bc6e628360155bdaebdacaa62 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 18 Oct 2019 23:09:00 -0400 Subject: Remove temp createResult --- ext/bg/js/database.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ext') diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js index c46b5228..3a87a2cd 100644 --- a/ext/bg/js/database.js +++ b/ext/bg/js/database.js @@ -64,11 +64,10 @@ class Database { const promises = []; const visited = {}; const results = []; - const createResult = Database.createTerm; const processRow = (row, index) => { if (titles.includes(row.dictionary) && !visited.hasOwnProperty(row.id)) { visited[row.id] = true; - results.push(createResult(row, index)); + results.push(Database.createTerm(row, index)); } }; @@ -122,10 +121,9 @@ class Database { const promises = []; const results = []; - const createResult = Database.createTermMeta; const processRow = (row, index) => { if (titles.includes(row.dictionary)) { - results.push(createResult(row, index)); + results.push(Database.createTermMeta(row, index)); } }; -- cgit v1.2.3