Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MordechaiHadad committed Nov 5, 2024
1 parent 2aaa640 commit 2643b01
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/handlers/use_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,11 @@ async fn copy_file_with_error_handling(old_path: &Path, new_path: &Path) -> Resu
async fn add_to_path(installation_dir: PathBuf, config: ConfigFile) -> Result<()> {
let installation_dir = installation_dir.to_str().unwrap();

if what_the_path::shell::exists_in_path("nvim-bin"){
if what_the_path::shell::exists_in_path("nvim-bin") {
return Ok(());
}

if config.config.add_neovim_binary_to_path == Some(false)
{
if config.config.add_neovim_binary_to_path == Some(false) {
info!("Make sure to add {installation_dir} to $PATH");
return Ok(());
}
Expand Down

0 comments on commit 2643b01

Please sign in to comment.