mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
ls: remove condition with unreachable "else" block
This commit is contained in:
parent
f5ba7f62db
commit
f16a4ae9c9
1 changed files with 3 additions and 7 deletions
|
@ -2480,14 +2480,10 @@ fn get_block_size(md: &Metadata, config: &Config) -> u64 {
|
|||
match config.size_format {
|
||||
SizeFormat::Binary | SizeFormat::Decimal => raw_blocks,
|
||||
SizeFormat::Bytes => {
|
||||
if cfg!(unix) {
|
||||
if let Some(user_block_size) = config.block_size {
|
||||
raw_blocks / user_block_size
|
||||
} else {
|
||||
raw_blocks / DEFAULT_BLOCK_SIZE
|
||||
}
|
||||
if let Some(user_block_size) = config.block_size {
|
||||
raw_blocks / user_block_size
|
||||
} else {
|
||||
raw_blocks
|
||||
raw_blocks / DEFAULT_BLOCK_SIZE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue