mirror of
https://github.com/Hopiu/lychee.git
synced 2026-04-17 11:50:59 +00:00
Enhance verbosity check (#578)
as suggested here: https://github.com/lycheeverse/lychee/pull/570#discussion_r835931903 Signed-off-by: MichaIng <micha@dietpi.com>
This commit is contained in:
parent
03d28820bb
commit
b338ba2abc
1 changed files with 1 additions and 7 deletions
|
|
@ -155,13 +155,7 @@ fn show_progress(
|
|||
if verbose {
|
||||
pb.println(out);
|
||||
}
|
||||
} else {
|
||||
#[allow(clippy::collapsible_if)]
|
||||
if !verbose {
|
||||
if response.status().is_success() || response.status().is_excluded() {
|
||||
return Ok(());
|
||||
}
|
||||
}
|
||||
} else if verbose || (!response.status().is_success() && !response.status().is_excluded()) {
|
||||
writeln!(output, "{out}")?;
|
||||
}
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Reference in a new issue