Remove temp createResult

This commit is contained in:
toasted-nutbread 2019-10-18 23:09:00 -04:00
parent 31ae00d0d3
commit 6743b785c9

View File

@ -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));
}
};