forked from open-policy-agent/opa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
topdown/copyprop: skip 'every' body when re-adding removed eqs (open-…
…policy-agent#5375) Follow-up to 232b0c7. For the following policy, the second expression does make a difference: every x in input.xs { x = input.foo } _ = input.foo Although it's part of the `every` body, when `input.xs` is `[]`, the body is not evaluated and the overall `every` expression is true. So, we cannot drop that second equation because its ref already is in the body of `every`. Signed-off-by: Stephan Renatus <[email protected]>
- Loading branch information
Showing
2 changed files
with
39 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters