Skip to content

Commit

Permalink
Disallow double trailing newlines in tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Apr 22, 2019
1 parent 7f0f0e3 commit a43ccb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/tidy/src/style.rs
Expand Up @@ -159,7 +159,7 @@ pub fn check(path: &Path, bad: &mut bool) {
}
match trailing_new_lines {
0 => tidy_error!(bad, "{}: missing trailing newline", file.display()),
1 | 2 => {}
1 => {}
n => tidy_error!(bad, "{}: too many trailing newlines ({})", file.display(), n),
};
})
Expand Down

0 comments on commit a43ccb0

Please sign in to comment.