chore: collapse if statements; autofix Clippy warnings

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I2765a6864b5435d803472b0fba313d7e6a6a6964
This commit is contained in:
raf 2026-02-28 23:33:16 +03:00
commit eb8b231340
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
4 changed files with 7 additions and 6 deletions

View file

@ -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