mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
Merge pull request #5687 from cakebaker/ls_remove_condition
ls: remove condition with unreachable "else" block
This commit is contained in:
commit
95852dbaa5
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