Skip to content

Remove single-parameter lambda parentheses in the cleanup pass. - #1505

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_1004624100
Oct 29, 2026
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_1004624100

Conversation

@copybara-service

Copy link
Copy Markdown

Remove single-parameter lambda parentheses in the cleanup pass.

Extend Cleanups to remove parentheses around single-parameter untyped lambda parameters ((x) -> x -> x -> x), preserving comments inside the parentheses and inserting a separating space when the opening parenthesis is immediately preceded by an identifier (e.g. return(x) -> x -> return x -> x).

Extend `Cleanups` to remove parentheses around single-parameter untyped lambda parameters (`(x) -> x` -> `x -> x`), preserving comments inside the parentheses and inserting a separating space when the opening parenthesis is immediately preceded by an identifier (e.g. `return(x) -> x` -> `return x -> x`).

PiperOrigin-RevId: 1009572816
@copybara-service
copybara-service Bot merged commit 10c6de0 into master Oct 29, 2026
4 checks passed
@copybara-service
copybara-service Bot deleted the test_1004624100 branch October 29, 2026 10:50
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