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 9a2d5f5 commit cb9d135Copy full SHA for cb9d135
src/users/dashboards.rs
@@ -208,7 +208,7 @@ impl Dashboards {
208
self.0.write().await.retain(|d| {
209
d.dashboard_id
210
.as_ref()
211
- .map_or(true, |id| *id != dashboard_id)
+ .is_some_and(|id| *id == dashboard_id)
212
});
213
214
Ok(())
@@ -222,7 +222,7 @@ impl Dashboards {
222
.find(|d| {
223
224
225
- .map_or(false, |id| *id == dashboard_id)
226
})
227
.cloned()
228
}
@@ -239,7 +239,7 @@ impl Dashboards {
239
240
241
242
243
&& d.author == Some(user_id.to_string())
244
245
0 commit comments