chore: collapse if statements; autofix Clippy warnings
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I2765a6864b5435d803472b0fba313d7e6a6a6964
This commit is contained in:
parent
92844d302e
commit
eb8b231340
4 changed files with 7 additions and 6 deletions
|
|
@ -209,8 +209,8 @@ pub async fn run(
|
|||
}
|
||||
|
||||
// Unsupported system timeout: abort builds with no available builders
|
||||
if let Some(timeout) = unsupported_timeout {
|
||||
if let Some(system) = &build.system {
|
||||
if let Some(timeout) = unsupported_timeout
|
||||
&& let Some(system) = &build.system {
|
||||
match repo::remote_builders::find_for_system(&pool, system).await {
|
||||
Ok(builders) if builders.is_empty() => {
|
||||
let timeout_at = build.created_at + timeout;
|
||||
|
|
@ -252,7 +252,6 @@ pub async fn run(
|
|||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// One-at-a-time scheduling: check if jobset allows concurrent builds
|
||||
// First, get the evaluation to find the jobset
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue