df: remove unreachable code

This commit is contained in:
Daniel Hofstetter
2022-04-21 15:24:52 +02:00
parent e8574ca184
commit 8d1e340d80
-6
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));
Ok(())