1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 04:27:45 +00:00

du: remove unnecessary return

This commit is contained in:
Daniel Hofstetter 2023-11-06 10:21:24 +01:00
parent 2571af8ede
commit 993a995f8a

View file

@ -143,7 +143,7 @@ impl Stat {
dev_id: metadata.dev(),
};
return Ok(Self {
Ok(Self {
path: path.to_path_buf(),
is_dir: metadata.is_dir(),
size: if path.is_dir() { 0 } else { metadata.len() },
@ -153,7 +153,7 @@ impl Stat {
created: birth_u64(&metadata),
accessed: metadata.atime() as u64,
modified: metadata.mtime() as u64,
});
})
}
#[cfg(windows)]