mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
cp: simplify bool
This commit is contained in:
@@ -116,10 +116,7 @@ fn check_sparse_detection(source: &Path, nofollow: bool) -> Result<bool, std::io
|
||||
let size = metadata.size();
|
||||
let blocks = metadata.blocks();
|
||||
|
||||
if blocks < size / 512 {
|
||||
return Ok(true);
|
||||
}
|
||||
Ok(false)
|
||||
Ok(blocks < size / 512)
|
||||
}
|
||||
|
||||
/// Optimized [`sparse_copy`] doesn't create holes for large sequences of zeros in non `sparse_files`
|
||||
|
||||
Reference in New Issue
Block a user