Skip to content

Commit d5224e5

Browse files
committed
refactor(rm/linux): improve code readability by splitting long assignment line
Break the long `error` assignment into two lines to enhance code formatting and maintainability, aligning with style guidelines for better legibility in the `handle_unlink` call.
1 parent 0f1059f commit d5224e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/uu/rm/src/platform/linux.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,8 @@ pub fn safe_remove_dir_recursive_impl(
437437
pb.inc(1);
438438
}
439439
if let Some(ref fd) = current_fd {
440-
error = handle_unlink(fd, entry_name.as_ref(), &entry_path, false, options) || error;
440+
error =
441+
handle_unlink(fd, entry_name.as_ref(), &entry_path, false, options) || error;
441442
}
442443
}
443444
}

0 commit comments

Comments
 (0)