aboutsummaryrefslogtreecommitdiff
path: root/src/block
diff options
context:
space:
mode:
Diffstat (limited to 'src/block')
-rw-r--r--src/block/layout.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/block/layout.rs b/src/block/layout.rs
index b119281b..3b529fc0 100644
--- a/src/block/layout.rs
+++ b/src/block/layout.rs
@@ -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);
}