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
Using some ... in doesn't work in that location, so the alternative would be:
input_containers[c] {
some c in input.review.object.spec.ephemeralContainers
}
# or
input_containers contains c if some c in input.review.object.spec.ephemeralContainers
But that's arguably an "unconditional assignment" — or at least an unconditional if — too. If one prefers the shorter [_] syntax in this case I think that should be allowed as an option.
The text was updated successfully, but these errors were encountered:
There are a few cases where
some .. in
can't directly replace[_]
iteration. In the gatekeeper-library repo, they do a whole lot of:Which without unconditional-assignment becomes:
Using
some ... in
doesn't work in that location, so the alternative would be:But that's arguably an "unconditional assignment" — or at least an unconditional
if
— too. If one prefers the shorter[_]
syntax in this case I think that should be allowed as an option.The text was updated successfully, but these errors were encountered: