From: Yuki OKUSHI Date: Wed, 17 Apr 2019 21:22:48 +0000 (+0900) Subject: Remove unnecessary condition X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=3ec0219432d86a6116f5ff09876403e22d83357e;p=rust.git Remove unnecessary condition --- diff --git a/src/tools/tidy/src/errors.rs b/src/tools/tidy/src/errors.rs index f24496aab59..ef1000ee506 100644 --- a/src/tools/tidy/src/errors.rs +++ b/src/tools/tidy/src/errors.rs @@ -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 }