aboutsummaryrefslogtreecommitdiff
path: root/src/api/push.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/push.rs')
-rw-r--r--src/api/push.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/api/push.rs b/src/api/push.rs
index d6abfc49..7396a68d 100644
--- a/src/api/push.rs
+++ b/src/api/push.rs
@@ -155,12 +155,9 @@ pub async fn push_cipher_update(
if cipher.organization_uuid.is_some() {
return;
};
- let user_uuid = match &cipher.user_uuid {
- Some(c) => c,
- None => {
- debug!("Cipher has no uuid");
- return;
- }
+ let Some(user_uuid) = &cipher.user_uuid else {
+ debug!("Cipher has no uuid");
+ return;
};
if Device::check_user_has_push_device(user_uuid, conn).await {