Skip to content

Commit 6c5920b

Browse files
committed
Reduce diff
1 parent 9ce7845 commit 6c5920b

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

Diff for: src/clean.rs

+5-9
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,12 @@ fn clean_aur(
9494
let cached_pkgs = read_dir(&config.fetch.clone_dir)
9595
.with_context(|| tr!("can't open clone dir: {}", config.fetch.clone_dir.display()))?;
9696

97-
for maybe_pkg in cached_pkgs {
98-
if let Err(err) = clean_aur_pkg(
99-
config,
100-
&maybe_pkg?,
101-
remove_all,
102-
keep_installed,
103-
keep_current,
104-
rm,
105-
) {
97+
for file in cached_pkgs {
98+
if let Err(err) =
99+
clean_aur_pkg(config, &file?, remove_all, keep_installed, keep_current, rm)
100+
{
106101
print_error(config.color.error, err);
102+
continue;
107103
}
108104
}
109105

0 commit comments

Comments
 (0)