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:
parent
2571af8ede
commit
993a995f8a
1 changed files with 2 additions and 2 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue