diff options
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)); } }; |