Skip to content

ls: remove condition with unreachable "else" block#5687

Merged
sylvestre merged 1 commit intouutils:mainfrom
cakebaker:ls_remove_condition
Dec 21, 2023
Merged

ls: remove condition with unreachable "else" block#5687
sylvestre merged 1 commit intouutils:mainfrom
cakebaker:ls_remove_condition

Conversation

@cakebaker
Copy link
Copy Markdown
Contributor

This PR removes a cfg!(unix) condition with an unreachable else block. It is unreachable because the enclosing code is already in a #[cfg(unix)] block.

@sylvestre
Copy link
Copy Markdown
Contributor

i wonder if clippy could not catch this :)
cc @samueltardieu

@sylvestre sylvestre merged commit 95852db into uutils:main Dec 21, 2023
@cakebaker cakebaker deleted the ls_remove_condition branch December 21, 2023 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants