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
{{ message }}
This repository was archived by the owner on Jan 5, 2023. It is now read-only.
If a function returns only one result, then FunctionOutput.isResult()will work, and FunctionOutput.isResult(0) will not work.
If a function returns two or more results, then FunctionOutput.isResult(0)will work, and FunctionOutput.isResult() will not work.
What IMHO would be better
It would be a lot less error-prone and a lot more awesome to be able to write FunctionOutput.isResult(0) regardless of whether there is one result or more.
Why it would be an improvement over the current situation
It would be a lot harder to make errors (such as using FunctionOutput.isResult() when in reality the function returns more than one result) if FunctionOutput.isResult(0) and FunctionOutput.isResult() were equivalent regardless of the number of results returned by the function.
I believe this would make things simpler to the end-developer that will be writing codeql.