diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-10-18 23:09:00 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-10-18 23:09:00 -0400 |
commit | 6743b785c9f75c0bc6e628360155bdaebdacaa62 (patch) | |
tree | a806ed98f3533c560218c3e3ddd2586f9838acc1 /ext/bg/js | |
parent | 31ae00d0d3ad93f5d8b91ae5e1e2046067f49e81 (diff) |
Remove temp createResult
Diffstat (limited to 'ext/bg/js')
-rw-r--r-- | ext/bg/js/database.js | 6 |
1 files changed, 2 insertions, 4 deletions
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)); } }; |