Skip to content

Commit dabc226

Browse files
npub1x4hk035p3p9q39a3fcrd2fe30lpkrhr5dwe0cqzzjphxyyh8m0gsq4vqapcodex
andcommitted
fix(desktop): satisfy Codex probe clippy
Co-authored-by: npub1x4hk035p3p9q39a3fcrd2fe30lpkrhr5dwe0cqzzjphxyyh8m0gsq4vqap <356f67c681884a0897b14e06d527317fc361dc746bb2fc0042906e6212e7dbd1@buzz.block.builderlab.xyz> Signed-off-by: npub1x4hk035p3p9q39a3fcrd2fe30lpkrhr5dwe0cqzzjphxyyh8m0gsq4vqap <356f67c681884a0897b14e06d527317fc361dc746bb2fc0042906e6212e7dbd1@buzz.block.builderlab.xyz> Co-authored-by: Codex <[email protected]> Ai-assisted: true
1 parent f2a0b1d commit dabc226

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎desktop/src-tauri/src/managed_agents/discovery.rs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,10 +1169,10 @@ pub(crate) fn codex_adapter_is_outdated_with_path(
11691169
path: &Path,
11701170
augmented_path: Option<&str>,
11711171
) -> bool {
1172-
match probe_codex_acp_major_version_with_path(path, augmented_path) {
1173-
Some(major) if major >= 1 => false,
1174-
_ => true,
1175-
}
1172+
!matches!(
1173+
probe_codex_acp_major_version_with_path(path, augmented_path),
1174+
Some(major) if major >= 1
1175+
)
11761176
}
11771177

11781178
/// Intermediate struct built before the (potentially slow) auth probe phase.

0 commit comments

Comments
 (0)