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 issue with blank line at the beginning of a file. #17

Merged
merged 1 commit into from
Feb 7, 2019
Merged

Fix issue with blank line at the beginning of a file. #17

merged 1 commit into from
Feb 7, 2019

Conversation

phyber
Copy link
Contributor

@phyber phyber commented Feb 7, 2019

Fixes #16

This resolves the issue where the linter would explode if the first line of a file was blank.
The issue was caused by not checking if the token.prev_token was nil or not while getting the indent.

@relud
Copy link
Contributor

relud commented Feb 7, 2019

thank you!

@relud relud merged commit f4c0056 into voxpupuli:master Feb 7, 2019
@phyber phyber deleted the start_with_blank_line_Fix branch February 7, 2019 17:56
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.

First line empty
2 participants