Skip to content

Commit 4218901

Browse files
committed
Cleanup
1 parent ff618a0 commit 4218901

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

objdiff-core/src/jobs/find_similar.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,9 @@ fn run_find_similar(
136136
};
137137
let Some(path) = path else { continue };
138138

139-
if should_build && let Some(project_dir) = project_dir {
140-
if let Ok(rel_path) = path.strip_prefix(project_dir) {
141-
run_make(&config.build_config, rel_path.with_unix_encoding().as_ref());
142-
}
139+
if should_build && let Some(project_dir) = project_dir
140+
&& let Ok(rel_path) = path.strip_prefix(project_dir) {
141+
run_make(&config.build_config, rel_path.with_unix_encoding().as_ref());
143142
}
144143

145144
let Ok(obj) = read::read(path.as_ref(), &config.diff_config, side) else { continue };

0 commit comments

Comments
 (0)