From dd1411487e72164dda4dee39ee31bcf6b2cbaa5e Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 23 Nov 2024 18:07:14 +0200 Subject: [PATCH] remove extra return --- src/profile/bookmark/memory.rs | 2 +- src/profile/identity/gemini/auth/memory.rs | 2 +- src/profile/identity/gemini/memory.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/profile/bookmark/memory.rs b/src/profile/bookmark/memory.rs index d0e960ab..2d810066 100644 --- a/src/profile/bookmark/memory.rs +++ b/src/profile/bookmark/memory.rs @@ -33,7 +33,7 @@ impl Memory { // Slot should be free, let check it twice match index.insert(request, id) { - Some(_) => return Err(Error::Unexpected), + Some(_) => Err(Error::Unexpected), None => Ok(()), } } diff --git a/src/profile/identity/gemini/auth/memory.rs b/src/profile/identity/gemini/auth/memory.rs index f586e945..2d2ca372 100644 --- a/src/profile/identity/gemini/auth/memory.rs +++ b/src/profile/identity/gemini/auth/memory.rs @@ -33,7 +33,7 @@ impl Memory { // Slot should be free, let check it twice match index.insert(url, profile_identity_gemini_id) { - Some(_) => return Err(Error::Unexpected), + Some(_) => Err(Error::Unexpected), None => Ok(()), } } diff --git a/src/profile/identity/gemini/memory.rs b/src/profile/identity/gemini/memory.rs index dfe16e4c..f51455b3 100644 --- a/src/profile/identity/gemini/memory.rs +++ b/src/profile/identity/gemini/memory.rs @@ -33,7 +33,7 @@ impl Memory { // Slot should be free, let check it twice match index.insert(profile_identity_gemini_id, pem) { - Some(_) => return Err(Error::Unexpected), + Some(_) => Err(Error::Unexpected), None => Ok(()), } }