We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5520928 commit e5a7435Copy full SHA for e5a7435
packages/storage/src/lib.rs
@@ -358,10 +358,10 @@ where
358
// We want to save in the following conditions
359
// - The value from the channel is different from the current value
360
// - 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;
+ if let Some(payload) = self.channel.borrow().data.downcast_ref::<T>() {
+ if *self.entry.data.read() == *payload {
+ return;
+ }
365
}
366
self.entry.save();
367
0 commit comments