enshort to common variable name

This commit is contained in:
yggverse 2024-12-14 07:04:23 +02:00
parent dd5fada7c7
commit 293c7d0aa3
15 changed files with 69 additions and 69 deletions

View file

@ -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::Database(reason)),
Err(e) => return Err(Error::Database(e)),
},
},
Err(reason) => return Err(Error::Database(reason)),
Err(e) => return Err(Error::Database(e)),
});
// Init gemini component
let gemini = Rc::new(match Gemini::new(connection, profile_identity_id) {
Ok(result) => result,
Err(reason) => return Err(Error::Gemini(reason)),
Err(e) => return Err(Error::Gemini(e)),
});
// Done
@ -53,8 +53,8 @@ impl Identity {
pub fn migrate(tx: &Transaction) -> Result<(), String> {
// Migrate self components
if let Err(reason) = database::init(tx) {
return Err(reason.to_string());
if let Err(e) = database::init(tx) {
return Err(e.to_string());
}
// Delegate migration to childs