Skip to content

Commit

Permalink
Don't refresh when no Git pkgbuild repos
Browse files Browse the repository at this point in the history
  • Loading branch information
Morganamilo committed Nov 27, 2023
1 parent bf35cab commit e090af4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pkgbuild.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,6 @@ impl PkgbuildRepos {
}

pub fn refresh(&self, config: &Config) -> Result<()> {
if self.repos.is_empty() {
return Ok(());
}

let cols = config.cols.unwrap_or(0);
let action = config.color.action;
let bold = config.color.bold;
Expand All @@ -331,6 +327,10 @@ impl PkgbuildRepos {
})
.collect::<Vec<_>>();

if repos.is_empty() {
return Ok(());
}

println!(
"\n{} {}",
action.paint("::"),
Expand Down

0 comments on commit e090af4

Please sign in to comment.