You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation states "A pipeline function can indicate that the passed token should be discarded by returning null. This token will not be passed to any downstream pipeline functions and will not be added to the index."
However, the code checks for undefined or empty string, and will pass null tokens through to the next pipeline function.
The text was updated successfully, but these errors were encountered:
I think the right fix here is to treat a null in the same way the code currently treats undefined and ""
@hoelzro thanks for the pull request, but I think we can take this opportunity to make the code match the documentation! I'll put together a change with a fix just now.
The documentation states "A pipeline function can indicate that the passed token should be discarded by returning null. This token will not be passed to any downstream pipeline functions and will not be added to the index."
However, the code checks for
undefined
or empty string, and will passnull
tokens through to the next pipeline function.The text was updated successfully, but these errors were encountered: