refactor: remove unused declaration of empty variable

This commit is contained in:
Muhammad Nauman Raza 2024-03-26 13:56:11 +00:00
parent d4a66fae6c
commit f6a98a1907
Signed by: devraza
GPG key ID: 91EAD6081011574B

View file

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