Skip to content

Commit e5a7435

Browse files
committed
undo storage changes
1 parent 5520928 commit e5a7435

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/storage/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,10 @@ where
358358
// We want to save in the following conditions
359359
// - The value from the channel is different from the current value
360360
// - The value from the channel could not be determined, likely because it hasn't been set yet
361-
if let Some(payload) = self.channel.borrow().data.downcast_ref::<T>()
362-
&& *self.entry.data.read() == *payload
363-
{
364-
return;
361+
if let Some(payload) = self.channel.borrow().data.downcast_ref::<T>() {
362+
if *self.entry.data.read() == *payload {
363+
return;
364+
}
365365
}
366366
self.entry.save();
367367
}

0 commit comments

Comments
 (0)