Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify ChainPiece. #1595

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Simplify ChainPiece. #1595

merged 1 commit into from
Nov 5, 2024

Conversation

munificent
Copy link
Member

@munificent munificent commented Nov 5, 2024

We were still passing in allowNewlines to _formatCall() even though that parameter was no longer used once Piece got the allowChildInState() API. So I removed that.

Then I noticed that the switch in _formatCall() could be more cleanly handled by having the cases in format() calculate separate directly. So I did that.

That left _formatCall() not actually doing anything useful, so I got rid of it.

There are no behavioral change, it's just a code clean-up.

We were still passing in allowNewlines to _formatCall() even though that
parameter was no longer used once Piece got the allowChildInState() API.
So I removed that.

Then I noticed that the switch in _formatCall() could be more cleanly
handled by having the cases in format() calculate separate directly. So
I did that.

That left _formatCall() not actually doing anything useful, so I got rid
of it.

There are no behavioral change, it's just a code clean-up.
@munificent munificent merged commit e62313b into main Nov 5, 2024
7 checks passed
@munificent munificent deleted the simplify-chain-piece branch November 5, 2024 19: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.

2 participants