Skip to content

Commit 8644411

Browse files
committed
Reduce diff
1 parent e8258d6 commit 8644411

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/function/maybe_changed_after.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,9 @@ where
333333
old_memo = old_memo.tracing_debug()
334334
);
335335

336-
let mut is_shallow_update_possible = false;
337-
if let Some(shallow_update) = self.shallow_verify_memo(zalsa, database_key_index, old_memo)
338-
{
339-
is_shallow_update_possible = true;
340-
336+
let shallow_update = self.shallow_verify_memo(zalsa, database_key_index, old_memo);
337+
let shallow_update_possible = shallow_update.is_some();
338+
if let Some(shallow_update) = shallow_update {
341339
if self.validate_may_be_provisional(db, zalsa, database_key_index, old_memo)
342340
|| self.validate_same_iteration(db, database_key_index, old_memo)
343341
{
@@ -372,7 +370,7 @@ where
372370
let is_provisional = old_memo.may_be_provisional();
373371

374372
// If the value is from the same revision but is still provisional, consider it changed
375-
if is_shallow_update_possible && old_memo.may_be_provisional() {
373+
if shallow_update_possible && is_provisional {
376374
return VerifyResult::Changed;
377375
}
378376

0 commit comments

Comments
 (0)