Skip to content

Commit

Permalink
Reduce diff
Browse files Browse the repository at this point in the history
  • Loading branch information
triarius committed Nov 27, 2023
1 parent 9ce7845 commit 6c5920b
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/clean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,12 @@ fn clean_aur(
let cached_pkgs = read_dir(&config.fetch.clone_dir)
.with_context(|| tr!("can't open clone dir: {}", config.fetch.clone_dir.display()))?;

for maybe_pkg in cached_pkgs {
if let Err(err) = clean_aur_pkg(
config,
&maybe_pkg?,
remove_all,
keep_installed,
keep_current,
rm,
) {
for file in cached_pkgs {
if let Err(err) =
clean_aur_pkg(config, &file?, remove_all, keep_installed, keep_current, rm)
{
print_error(config.color.error, err);
continue;
}
}

Expand Down

0 comments on commit 6c5920b

Please sign in to comment.