From 3098e89fde095751de60c3109a7f54b5e3cd54db Mon Sep 17 00:00:00 2001 From: Alex Girard Date: Sat, 13 May 2023 21:33:38 -0400 Subject: [PATCH] removing redundent config directory check --- src/main.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8c0bf78..0914981 100644 --- a/src/main.rs +++ b/src/main.rs @@ -101,15 +101,6 @@ impl TryFrom<&HotkeyBinding> for HkmData { fn main() -> Result<()> { color_eyre::install()?; - let mut whkdrc_check = dirs::home_dir().expect("no home directory found"); - whkdrc_check.push(".config"); - whkdrc_check.push("whkdrc"); - - if !whkdrc_check.exists() { - println!("No whkdrc file detected. Please place a configuration file at ~/.config/whkdrc and try again."); - return Ok(()); - } - let shell_binary = WHKDRC.shell.to_string(); match WHKDRC.shell {