Skip to content

proper placement for recently added function signature tests#771

Open
mikhail-barg wants to merge 1 commit intojsonata-js:masterfrom
mikhail-barg:master
Open

proper placement for recently added function signature tests#771
mikhail-barg wants to merge 1 commit intojsonata-js:masterfrom
mikhail-barg:master

Conversation

@mikhail-barg
Copy link

@mikhail-barg mikhail-barg commented Feb 25, 2026

also a minor fix removing unused nextFunction attribute

Fixes #769

@andrew-coleman
Copy link
Member

Hi @mikhail-barg - apologies, I just noticed after moving the tests that you'd raised this PR to do the same a while back. My bad!
Please could you rebase on master, and I'll merge the remainder of this.
Thanks!

@mikhail-barg
Copy link
Author

@andrew-coleman done!

Comment on lines 1050 to 1057
if (rest.type === 'function' &&
rest.procedure.type === 'path' &&
rest.procedure.steps.length === 1 &&
rest.procedure.steps[0].type === 'name' &&
result.steps[result.steps.length - 1].type === 'function') {
// next function in chain of functions - will override a thenable
result.steps[result.steps.length - 1].nextFunction = rest.procedure.steps[0].value;
}
Copy link
Member

Choose a reason for hiding this comment

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

You'll need to take out the whole if block.

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.

nextFunction is never used

2 participants