1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

df: remove unreachable code

This commit is contained in:
Daniel Hofstetter 2022-04-21 15:24:52 +02:00
parent e8574ca184
commit 8d1e340d80

View file

@ -382,12 +382,6 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
} }
}; };
// This can happen if paths are given as command-line arguments
// but none of the paths exist.
if filesystems.is_empty() {
return Ok(());
}
println!("{}", Table::new(&opt, filesystems)); println!("{}", Table::new(&opt, filesystems));
Ok(()) Ok(())