Skip to content

Commit ec46ce8

Browse files
committed
Julian was right as always
1 parent f502726 commit ec46ce8

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/modules/CSVURLModule.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,7 @@ class CSVURLModule {
4949
await this.fillDataCache();
5050

5151
if (csvSchema) {
52-
logger.info(`Validating CSV data for ${this.url}`);
53-
if (!this.data) {
54-
const csvData = await axios(this.url);
55-
// Parse then normalize the data
56-
const parsedData = parse(csvData, {
57-
columns: (header) => header.map((column) => stringNormalizer(column)),
58-
bom: true,
59-
});
60-
this.data = normalizeEmptyValues(parsedData, this.unalterableColumns);
61-
}
52+
this.data = normalizeEmptyValues(this.data, this.unalterableColumns);
6253
return validateCSV(this.url, csvSchema, this.data);
6354
}
6455
logger.warn(`No CSV schema provided for data found at ${this.url}`);

0 commit comments

Comments
 (0)