From c258d7b0b129752ef8a57722ca31c562ff74f91c Mon Sep 17 00:00:00 2001 From: Brendan Clement Date: Mon, 1 Jun 2026 20:28:53 -0700 Subject: [PATCH] fix(python): collapse nested if to fix CI issue --- python/src/table.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/src/table.rs b/python/src/table.rs index 3fa0a5a08..a0462caf3 100644 --- a/python/src/table.rs +++ b/python/src/table.rs @@ -1172,10 +1172,10 @@ impl Table { } } } - if let Some(replace) = update.get_item("replace")? { - if replace.extract::()? { - field_update = field_update.replace(); - } + if let Some(replace) = update.get_item("replace")? + && replace.extract::()? + { + field_update = field_update.replace(); } Ok(field_update) })