Skip to content

Commit c5d1184

Browse files
committed
removing unnecessary data length check
1 parent 492fae7 commit c5d1184

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/helpers/csvValidator.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ function validateCSV(csvFileIdentifier, csvSchema, csvData, header) {
2727
});
2828
}
2929

30-
if (csvData.length === 0) {
31-
return true;
32-
}
33-
3430
// Check values
3531
csvData.forEach((row, i) => {
3632
Object.entries(row).forEach(([key, value], j) => {

0 commit comments

Comments
 (0)