mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
remove extra return
This commit is contained in:
parent
c86dca53bd
commit
dd1411487e
3 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue