Skip to content

Simplify if-guard-then-bool returns#12702

Open
sylvestre wants to merge 1 commit into
uutils:mainfrom
sylvestre:needless-bool-cleanup
Open

Simplify if-guard-then-bool returns#12702
sylvestre wants to merge 1 commit into
uutils:mainfrom
sylvestre:needless-bool-cleanup

Conversation

@sylvestre

Copy link
Copy Markdown
Contributor

Reduce the if cond { return false } true pattern to !(cond) in df, cp and sort. No behavior change.

@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/retry (passes in this run but fails in the 'main' branch)
Note: The gnu test tests/printf/printf-surprise is now being skipped but was previously passing.
Congrats! The gnu test tests/expand/bounded-memory is now passing!

@sylvestre sylvestre force-pushed the needless-bool-cleanup branch from e26ec46 to 88ebcab Compare June 7, 2026 19:52
@sylvestre sylvestre requested a review from cakebaker June 7, 2026 20:24
Reduce the `if cond { return false } true` pattern to `!(cond)` in df, cp
and sort. No behavior change.
@sylvestre sylvestre force-pushed the needless-bool-cleanup branch from 88ebcab to fcb41c9 Compare June 7, 2026 20:26
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.

1 participant