refactor: remove unused declaration of empty variable

This commit is contained in:
Muhammad Nauman Raza 2024-03-26 13:56:11 +00:00
parent ecba73ebbc
commit 81665dd55a

View file

@ -35,10 +35,10 @@ fn vaporise() -> Result<()> {
if path::Path::new(target).exists() { if path::Path::new(target).exists() {
if fs::metadata(target).unwrap().is_dir() { if fs::metadata(target).unwrap().is_dir() {
let _ = fs::remove_dir_all(target) fs::remove_dir_all(target)
.with_context(|| format!("could not remove directory: {}", target.bold()))?; .with_context(|| format!("could not remove directory: {}", target.bold()))?;
} else { } else {
let _ = fs::remove_file(target) fs::remove_file(target)
.with_context(|| format!("could not remove file: {}", target.bold()))?; .with_context(|| format!("could not remove file: {}", target.bold()))?;
} }
} else { } else {