forked from Deuxfleurs/garage
block manager: fix dir_not_empty
This commit is contained in:
parent
93114a9747
commit
3a74844df0
1 changed files with 1 additions and 2 deletions
|
@ -276,8 +276,7 @@ fn dir_not_empty(path: &PathBuf) -> Result<bool, Error> {
|
||||||
.into_string()
|
.into_string()
|
||||||
.ok()
|
.ok()
|
||||||
.and_then(|hex| hex::decode(&hex).ok())
|
.and_then(|hex| hex::decode(&hex).ok())
|
||||||
.map(|bytes| (2..=4).contains(&bytes.len()))
|
.is_some()
|
||||||
.unwrap_or(false)
|
|
||||||
{
|
{
|
||||||
return Ok(true);
|
return Ok(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue