Skip to content

Commit

Permalink
Also check for empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
dickwolff authored Feb 8, 2024
1 parent d51b5f6 commit 3b62345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/converters/etoroConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class EtoroConverter extends AbstractConverter {
}, async (_, records: EtoroRecord[]) => {

// If records is empty, parsing failed..
if (records === undefined) {
if (records === undefined || records.length === 0) {
return errorCallback(new Error("An error ocurred while parsing!"));
}

Expand Down

0 comments on commit 3b62345

Please sign in to comment.