Skip to content

Unneeded path parameters#1482

Merged
Janther merged 3 commits intomainfrom
unneeded-path-parameters
Apr 4, 2026
Merged

Unneeded path parameters#1482
Janther merged 3 commits intomainfrom
unneeded-path-parameters

Conversation

@Janther
Copy link
Copy Markdown
Member

@Janther Janther commented Mar 26, 2026

the path object is the same across the whole execution, so there's no need for an internal parameter when the external parameter is still available.

inspired by prettier/prettier#17867

@Janther Janther requested a review from fvictorio March 26, 2026 14:41
@Janther Janther changed the title Unneeded path parameters Unneeded path parameters Mar 26, 2026

print(): Doc {
return ['address', this.payableKeyword ? ' payable' : ''];
return `address${this.payableKeyword ? ' payable' : ''}`;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one is just a bonus detail that didn't merit a PR

@Janther Janther force-pushed the unneeded-path-parameters branch 3 times, most recently from 0927f2f to 5c8dba7 Compare March 30, 2026 17:42
@Janther Janther force-pushed the unneeded-path-parameters branch from 7b17a80 to 5b93368 Compare April 4, 2026 19:28
@Janther Janther merged commit dd56f15 into main Apr 4, 2026
7 checks passed
@Janther Janther deleted the unneeded-path-parameters branch April 4, 2026 19:30
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