mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
remove duplicated enums
This commit is contained in:
parent
a48f62eb13
commit
58ed923bc7
6 changed files with 22 additions and 35 deletions
|
|
@ -29,16 +29,16 @@ impl Identity {
|
|||
Some(identity) => identity.id,
|
||||
None => match database.add(profile_id, true) {
|
||||
Ok(id) => id,
|
||||
Err(reason) => return Err(Error::DatabaseAdd(reason)),
|
||||
Err(reason) => return Err(Error::Database(reason)),
|
||||
},
|
||||
},
|
||||
Err(reason) => return Err(Error::DatabaseActive(reason)),
|
||||
Err(reason) => return Err(Error::Database(reason)),
|
||||
});
|
||||
|
||||
// Init gemini component
|
||||
let gemini = Rc::new(match Gemini::new(connection, profile_identity_id) {
|
||||
Ok(result) => result,
|
||||
Err(reason) => return Err(Error::GeminiInit(reason)),
|
||||
Err(reason) => return Err(Error::Gemini(reason)),
|
||||
});
|
||||
|
||||
// Done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue