refactor: remove unused declaration of empty variable

This commit is contained in:
Muhammad Nauman Raza 2024-03-26 13:56:11 +00:00
parent 8c77de968e
commit 94ad642053
No known key found for this signature in database
GPG key ID: 31BC90D626D2DBBE

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 {