Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
MordechaiHadad committed Jun 13, 2024
1 parent 27458b2 commit 391230a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/handlers/erase_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ pub async fn start(config: Config) -> Result<()> {
let downloads = directories::get_downloads_directory(&config).await?;
let installation_dir = directories::get_installation_directory(&config).await?;

if config.installation_location.is_none() {
if fs::remove_dir_all(&installation_dir).await.is_ok() {
info!("Successfully removed neovim's installation folder");
}
if config.installation_location.is_none() && fs::remove_dir_all(&installation_dir).await.is_ok()
{
info!("Successfully removed neovim's installation folder");
}
if fs::remove_dir_all(downloads).await.is_ok() {
// For some weird reason this check doesn't really work for downloads folder
Expand Down

0 comments on commit 391230a

Please sign in to comment.