Skip to content

Commit

Permalink
Fix missing declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoFrachet committed Jan 15, 2018
1 parent 0f80be4 commit eb2fbe4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helpers/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const fs = require('fs-extra');

const eachWithLog = require('./logging_iterator_wrapper');
const { fromCsvStringToArray } = require('./csv');
const schema = require('./schema');

/**
*
Expand Down Expand Up @@ -42,7 +43,8 @@ const { fromCsvStringToArray } = require('./csv');
*/

exports.importTable = (gtfs, tableName, regexPatternObjectsByTableName) => {
regexPatternObjectsByTableName = regexPatternObjectsByTableName || {};
regexPatternObjectsByTableName = regexPatternObjectsByTableName || new Map();
const indexKeys = schema.indexKeysByTableName[tableName];
const fullPath = `${gtfs.getPath() + tableName}.txt`;

if (fs.existsSync(fullPath)) {
Expand Down

0 comments on commit eb2fbe4

Please sign in to comment.