mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
remove extra return
This commit is contained in:
parent
c86dca53bd
commit
dd1411487e
@ -33,7 +33,7 @@ impl Memory {
|
|||||||
|
|
||||||
// Slot should be free, let check it twice
|
// Slot should be free, let check it twice
|
||||||
match index.insert(request, id) {
|
match index.insert(request, id) {
|
||||||
Some(_) => return Err(Error::Unexpected),
|
Some(_) => Err(Error::Unexpected),
|
||||||
None => Ok(()),
|
None => Ok(()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ impl Memory {
|
|||||||
|
|
||||||
// Slot should be free, let check it twice
|
// Slot should be free, let check it twice
|
||||||
match index.insert(url, profile_identity_gemini_id) {
|
match index.insert(url, profile_identity_gemini_id) {
|
||||||
Some(_) => return Err(Error::Unexpected),
|
Some(_) => Err(Error::Unexpected),
|
||||||
None => Ok(()),
|
None => Ok(()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ impl Memory {
|
|||||||
|
|
||||||
// Slot should be free, let check it twice
|
// Slot should be free, let check it twice
|
||||||
match index.insert(profile_identity_gemini_id, pem) {
|
match index.insert(profile_identity_gemini_id, pem) {
|
||||||
Some(_) => return Err(Error::Unexpected),
|
Some(_) => Err(Error::Unexpected),
|
||||||
None => Ok(()),
|
None => Ok(()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user