Skip to content

Commit

Permalink
removing redundent config directory check
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexGirardDev authored and LGUG2Z committed May 14, 2023
1 parent 976fe4f commit 3098e89
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3098e89

Please sign in to comment.