making linters happy
Some checks failed
CI / Rust Blocking Checks (push) Failing after 22s
CI / Web Blocking Checks (push) Failing after 26s
CI / Security Blocking Checks (push) Successful in 9s
CI / Web Advisory Checks (push) Successful in 32s
CI / Security Advisory Checks (push) Has been cancelled
Some checks failed
CI / Rust Blocking Checks (push) Failing after 22s
CI / Web Blocking Checks (push) Failing after 26s
CI / Security Blocking Checks (push) Successful in 9s
CI / Web Advisory Checks (push) Successful in 32s
CI / Security Advisory Checks (push) Has been cancelled
This commit is contained in:
@@ -187,11 +187,13 @@ impl WorkflowLoader {
|
||||
.map(|e| e.to_string())
|
||||
};
|
||||
|
||||
if validation_error.is_some() && !self.config.skip_validation {
|
||||
return Err(Error::validation(format!(
|
||||
"Workflow validation failed: {}",
|
||||
validation_error.as_ref().unwrap()
|
||||
)));
|
||||
if let Some(ref err) = validation_error {
|
||||
if !self.config.skip_validation {
|
||||
return Err(Error::validation(format!(
|
||||
"Workflow validation failed: {}",
|
||||
err
|
||||
)));
|
||||
}
|
||||
}
|
||||
|
||||
Ok(LoadedWorkflow {
|
||||
|
||||
Reference in New Issue
Block a user