summaryrefslogtreecommitdiff
path: root/ext/bg/js/database.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-18 23:09:00 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-18 23:09:00 -0400
commit6743b785c9f75c0bc6e628360155bdaebdacaa62 (patch)
treea806ed98f3533c560218c3e3ddd2586f9838acc1 /ext/bg/js/database.js
parent31ae00d0d3ad93f5d8b91ae5e1e2046067f49e81 (diff)
Remove temp createResult
Diffstat (limited to 'ext/bg/js/database.js')
-rw-r--r--ext/bg/js/database.js6
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));
}
};