Skip to content

Commit

Permalink
Fix double callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Léo Frachet committed Mar 29, 2018
1 parent d11e3f3 commit 5366c87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helpers/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ function exportTable(tableName, gtfs, outputPath, callback) {
}
const row = fromObjectToCsvString(item, keys);
fs.appendFile(outputFullPath, row, callback);
} else {
callback();
}
callback();
return;
}

Expand Down

0 comments on commit 5366c87

Please sign in to comment.