From 41e910b57ecba179dc0fdf0a080f495a1033a42f Mon Sep 17 00:00:00 2001 From: Namekuji Date: Tue, 26 Sep 2023 18:15:49 -0400 Subject: [PATCH] no warning if no-confirm is true --- .../native-utils/scylla-migration/src/setup.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/packages/backend/native-utils/scylla-migration/src/setup.rs b/packages/backend/native-utils/scylla-migration/src/setup.rs index 81814e33bc..5ed59de5b9 100644 --- a/packages/backend/native-utils/scylla-migration/src/setup.rs +++ b/packages/backend/native-utils/scylla-migration/src/setup.rs @@ -74,15 +74,10 @@ impl Initializer { let pool = Database::connect(&self.postgres_url).await?; let db_backend = pool.get_database_backend(); - println!( - "{}", - dialoguer::console::style( - "This is irreversible! Please backup your PostgreSQL database before you proceed." - ) - .bold() - ); - if !self.no_confirm { + println!("{}", + dialoguer::console::style("This is irreversible! Please backup your PostgreSQL database before you proceed.").bold() + ); let confirm = Confirm::with_theme(&ColorfulTheme::default()) .with_prompt("This process may take a while. Do you want to continue?") .interact()