fix(managed-agents): use is_none_or in barrier readiness test

Replace map_or(true, ...) with is_none_or(...) per clippy lint
unnecessary_map_or (-D warnings gate).

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
This commit is contained in:
npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7
2026-07-30 19:35:43 -04:00
parent 698049d627
commit 95f5e0fa68

View File

@@ -1024,7 +1024,7 @@ mod flush_barrier {
{
let guard = state.config_sync_ready_scope.lock().unwrap();
assert!(
guard.as_ref().map_or(true, |p| *p != db_path),
guard.as_ref().is_none_or(|p| *p != db_path),
"scope is not ready after a barrier failure — flush must skip"
);
}