Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected error when calling eachLine on an empty file #49

Open
beinardus opened this issue Nov 19, 2023 · 0 comments
Open

Unexpected error when calling eachLine on an empty file #49

beinardus opened this issue Nov 19, 2023 · 0 comments

Comments

@beinardus
Copy link

Calling eachLine on an empty file executes the error call back function (errCb) with an undefined error. I think the correct behaviour would be to not execute any of the call-back functions in the case of an empty file since there are no lines and there is no error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant