fix and enable collapsible_if lint

Signed-off-by: June Strawberry <june@vern.cc>
This commit is contained in:
June Strawberry
2026-01-15 17:39:33 -05:00
parent fb102f0e0a
commit 04e66a03d3
54 changed files with 453 additions and 504 deletions

View File

@@ -113,10 +113,10 @@ pub(super) async fn remove_dehydrated_device(
return Err!(Request(NotFound("No dehydrated device for this user.")));
};
if let Some(maybe_device_id) = maybe_device_id {
if maybe_device_id != device_id {
return Err!(Request(NotFound("Not the user's dehydrated device.")));
}
if let Some(maybe_device_id) = maybe_device_id
&& maybe_device_id != device_id
{
return Err!(Request(NotFound("Not the user's dehydrated device.")));
}
self.db.userid_dehydrateddevice.remove(user_id);