Skip to content

Commit

Permalink
Remove unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Apr 17, 2019
1 parent 53084ff commit 3ec0219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/tidy/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub fn check(path: &Path, bad: &mut bool) {
&mut |path| super::filter_dirs(path) || path.ends_with("src/test"),
&mut |file| {
let filename = file.file_name().unwrap().to_string_lossy();
if filename != "error_codes.rs" && filename != "diagnostic_list.rs" {
if filename != "error_codes.rs" {
return
}

Expand Down

0 comments on commit 3ec0219

Please sign in to comment.