Skip to content

Commit

Permalink
fix: fmt errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tymmesyde committed Jan 30, 2024
1 parent 348273f commit 3447035
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/models/ctx/update_profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ pub fn update_profile<E: Env + 'static>(
return addon_upgrade_error_effects(addon, OtherError::AddonAlreadyInstalled);
}
if addon.manifest.behavior_hints.configuration_required {
return addon_upgrade_error_effects(addon, OtherError::AddonConfigurationRequired);
return addon_upgrade_error_effects(
addon,
OtherError::AddonConfigurationRequired,
);
}
let addon_position = match profile
.addons
Expand All @@ -128,7 +131,9 @@ pub fn update_profile<E: Env + 'static>(
.position(|transport_url| *transport_url == addon.transport_url)
{
Some(addon_position) => addon_position,
None => return addon_upgrade_error_effects(addon, OtherError::AddonNotInstalled),
None => {
return addon_upgrade_error_effects(addon, OtherError::AddonNotInstalled);
}
};
if addon.flags.protected || profile.addons[addon_position].flags.protected {
return addon_upgrade_error_effects(addon, OtherError::AddonIsProtected);
Expand Down

0 comments on commit 3447035

Please sign in to comment.