block manager: fix dir_not_empty

This commit is contained in:
Alex 2023-09-05 15:41:36 +02:00
parent 93114a9747
commit 3a74844df0

View file

@ -276,8 +276,7 @@ fn dir_not_empty(path: &PathBuf) -> Result<bool, Error> {
.into_string()
.ok()
.and_then(|hex| hex::decode(&hex).ok())
.map(|bytes| (2..=4).contains(&bytes.len()))
.unwrap_or(false)
.is_some()
{
return Ok(true);
}