We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb29954 commit eb0360eCopy full SHA for eb0360e
src/path_rewriting.rs
@@ -264,15 +264,13 @@ pub fn rewrite_paths(
264
// If all covered paths are direct childs of the source directory, then that function will
265
// do nothing, and we don't have to do its pre-requisite data gathering.
266
if has_java {
267
- for path in result_map.keys() {
+ map_partial_path_needed = result_map.keys().any(|path| {
268
let mut path = Path::new(path);
269
if let Some(prefix) = &prefix_dir {
270
path = path.strip_prefix(prefix).unwrap_or(path);
271
}
272
- if !source_dir.join(path).exists() {
273
- map_partial_path_needed = true;
274
- }
275
+ !source_dir.join(path).exists()
+ })
276
277
278
if map_partial_path_needed {
0 commit comments