refactor: remove unused declaration of empty variable
This commit is contained in:
parent
d4a66fae6c
commit
f6a98a1907
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue