From 222b75cebaebb84f5b8d133a464feb0f19e14b9e Mon Sep 17 00:00:00 2001 From: Christian Höppner Date: Fri, 20 Nov 2020 08:08:22 +0000 Subject: fixup! Check auto-rollback flag before deactivating --- src/activate.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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)); } }; -- cgit v1.2.3