Skip to content

Commit 2dee2a4

Browse files
lolbinarycatKobzol
andauthored
Apply suggestions from code review
Co-authored-by: Jakub Beránek <[email protected]>
1 parent b7d857e commit 2dee2a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/tools/tidy/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ pub fn files_modified_batch_filter<T>(
169169
None => {
170170
eprintln!("warning: failed to run `git diff` to check for changes");
171171
eprintln!("warning: assuming all files are modified");
172-
return;
173172
}
174173
}
175174
}
@@ -178,7 +177,7 @@ pub fn files_modified_batch_filter<T>(
178177
pub fn files_modified(ci_info: &CiInfo, pred: impl Fn(&str) -> bool) -> bool {
179178
let mut v = vec![()];
180179
files_modified_batch_filter(ci_info, &mut v, |_, p| pred(p));
181-
v.is_empty()
180+
!v.is_empty()
182181
}
183182

184183
pub mod alphabetical;

0 commit comments

Comments
 (0)