From 8872ca3c63004a4240dbd65761ba460915a3f3b6 Mon Sep 17 00:00:00 2001 From: Erik Corry Date: Sat, 28 Sep 2024 19:26:22 +0200 Subject: [PATCH] Fix empty if. --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index d64741a..763779b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -122,8 +122,7 @@ fn main() -> Result<()> { println!("Recording window id: {}", win_id); } } - if args.get_flag("quiet") { - } else { + if !args.get_flag("quiet") { println!("[t-rec]: Press Ctrl+D to end recording"); } thread::sleep(Duration::from_millis(1250));