Skip to content

Commit

Permalink
that should be a 'continue'
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Oct 17, 2023
1 parent cc4bb19 commit 2e98955
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/re_types_builder/src/codegen/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,12 @@ pub fn remove_orphaned_files(reporter: &Reporter, files: &GeneratedFiles) {
.collect();

for folder_path in folder_paths {
re_log::debug!("Checking for old files in {folder_path}");
re_log::debug!("Checking for orphaned files in {folder_path}");

let iter = std::fs::read_dir(folder_path).ok();
if iter.is_none() {
return;
re_log::debug!("Skipping orphan check in {folder_path}: not a folder (?)");
continue;
}

for entry in iter.unwrap().flatten() {
Expand Down

0 comments on commit 2e98955

Please sign in to comment.