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

fix: do not error on empty files #9

Merged
merged 1 commit into from
Jan 14, 2022

Conversation

costela
Copy link
Contributor

@costela costela commented Jan 14, 2022

An empty YAML file should behave no differently than a file with just a single YAML document separator (---). The former passes the io.EOF through, the later returns no error.
This PR should work around the following go-yaml issue: go-yaml/yaml#805

this should work around the following go-yaml issue:
go-yaml/yaml#805
@alecthomas alecthomas merged commit 25e9103 into alecthomas:master Jan 14, 2022
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

Successfully merging this pull request may close these issues.

2 participants