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 call can be skipped entirely if n.dropParentRequirements is true,
given that the result goes entirely unused.
Similarly, a is empty if we don't append from the recursive call,
so move the call to filterNonRecursive inside the conditional too.
While here, set computedCloseInfo to true once we set reqSets.
Resetting the length of reqSets upfront is also unnecessary,
as it's always 0 when we start here.
No visible change to the two benchmarks I'm using for #3881,
but this is still helping clarify that the code is not doing
something else that isn't obvious here, like a side effect.
Signed-off-by: Daniel Martí <[email protected]>
Change-Id: I321b561ecf56667dcd91fccc351727ca80c093e5
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1217195
Reviewed-by: Marcel van Lohuizen <[email protected]>
Unity-Result: CUE porcuepine <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
0 commit comments