Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: no-multiple-empty-lines crash on space after last \n (fixes #8401)…
… (#8402) * Fix: no-multiple-empty-lines crash on space after last \n (fixes #8401) Previously, no-multiple-empty-lines would crash if it tried to remove a trailing newline followed by a space from the end of a file. This commit fixes the crash. * Fix code duplication
- Loading branch information
1 parent
e395919
commit 936af66
Showing
2 changed files
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters