mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-13 22:26:53 +00:00
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:
co-authored by
Claude Sonnet 5
parent
f5f6fbe69a
commit
999761c258
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user