mirror of
https://github.com/Hopiu/lychee.git
synced 2026-05-04 03:44:44 +00:00
Collapse output conditions
This commit is contained in:
parent
0db81e27d6
commit
867a9ac31a
1 changed files with 2 additions and 4 deletions
|
|
@ -62,10 +62,8 @@ fn run_main() -> Result<i32> {
|
|||
}
|
||||
|
||||
fn show_progress(progress_bar: &Option<ProgressBar>, response: &Response, verbose: bool) {
|
||||
if response.status.is_success() || response.status.is_excluded() {
|
||||
if !verbose {
|
||||
return;
|
||||
}
|
||||
if (response.status.is_success() || response.status.is_excluded()) && !verbose {
|
||||
return;
|
||||
}
|
||||
// Regular println! interferes with progress bar
|
||||
if let Some(pb) = progress_bar {
|
||||
|
|
|
|||
Loading…
Reference in a new issue