fix(python): collapse nested if per clippy::collapsible_if

Pure style fix, no behavior change -- CI's clippy run (-D warnings)
rejected the nested if in get_runtime().

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
ChilePiquin
2026-09-15 07:11:23 -06:00
co-authored by Claude Sonnet 5
parent f5f6fbe69a
commit 999761c258
+4 -4
View File
@@ -130,10 +130,10 @@ fn get_runtime() -> Arc<Tagged> {
let current_gen = GENERATION.load(Ordering::SeqCst);
loop {
let existing = RUNTIME.load_full();
if let Some(existing) = &existing {
if existing.generation == current_gen {
return Arc::clone(existing);
}
if let Some(existing) = &existing
&& existing.generation == current_gen
{
return Arc::clone(existing);
}
if !ATFORK_INSTALLED.fetch_or(true, Ordering::SeqCst) {
install_atfork();