Commit 5aebfa9
committed
refactor(uu/rm): simplify device skipping logic by removing wrapper function
Remove the cfg-specific `should_skip_different_device` wrapper and directly call
`should_skip_different_device_with_dev` with a `#[cfg(unix)]` attribute in the
recursive directory removal function, reducing code duplication and improving clarity.1 parent 71cc702 commit 5aebfa9
1 file changed
Lines changed: 2 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | 614 | | |
635 | 615 | | |
636 | 616 | | |
| |||
759 | 739 | | |
760 | 740 | | |
761 | 741 | | |
762 | | - | |
| 742 | + | |
| 743 | + | |
763 | 744 | | |
764 | 745 | | |
765 | 746 | | |
| |||
0 commit comments