remove extra return

This commit is contained in:
yggverse 2024-11-23 18:07:14 +02:00
parent c86dca53bd
commit dd1411487e
3 changed files with 3 additions and 3 deletions

View File

@ -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(()),
}
}

View File

@ -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(()),
}
}

View File

@ -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(()),
}
}