aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Höppner2020-11-20 08:08:22 +0000
committernotgne22020-11-21 22:42:03 -0700
commit222b75cebaebb84f5b8d133a464feb0f19e14b9e (patch)
tree2f55926a0dc428b18550544317c5318235618e4d
parenta317b0bcac88725771476d8430caec957ae5e91d (diff)
fixup! Check auto-rollback flag before deactivating
-rw-r--r--src/activate.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/activate.rs b/src/activate.rs
index cc80876..f9c7e22 100644
--- a/src/activate.rs
+++ b/src/activate.rs
@@ -330,9 +330,7 @@ pub async fn activate(
{
Ok(()) => {}
Err(err) => {
- if auto_rollback {
- deactivate(&profile_path).await?;
- }
+ deactivate(&profile_path).await?;
return Err(ActivateError::ActivationConfirmationError(err));
}
};