Exit 0 if all errors are fixed (#342)

This commit is contained in:
Charlie Marsh
2022-10-07 12:13:15 -04:00
committed by GitHub
parent bd34850f98
commit da6b913317

View File

@@ -404,7 +404,7 @@ fn inner_main() -> Result<ExitCode> {
#[cfg(feature = "update-informer")]
check_for_updates();
if !messages.is_empty() && !cli.exit_zero {
if messages.iter().any(|message| !message.fixed) && !cli.exit_zero {
return Ok(ExitCode::FAILURE);
}
}