Skip to content

fix: correct parts.unshift() to parts.shift() in isSimpleCallArgument#2461

Open
jorgsowa wants to merge 1 commit intoprettier:mainfrom
jorgsowa:fix/is-simple-call-argument-chain-depth
Open

fix: correct parts.unshift() to parts.shift() in isSimpleCallArgument#2461
jorgsowa wants to merge 1 commit intoprettier:mainfrom
jorgsowa:fix/is-simple-call-argument-chain-depth

Conversation

@jorgsowa
Copy link
Collaborator

@jorgsowa jorgsowa commented Mar 23, 2026

parts.unshift() with no arguments does nothing. It should be parts.shift() to remove the first element, so the depth check counts the rest of the chain correctly.

@jorgsowa jorgsowa marked this pull request as ready for review March 23, 2026 00: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.

1 participant