We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5dff9df + 4842d8b commit 2fdb356Copy full SHA for 2fdb356
api/internal/accumulator/resaccumulator.go
@@ -170,9 +170,10 @@ func (ra *ResAccumulator) FixBackReferences() (err error) {
170
171
// Intersection drops the resources which "other" does not have.
172
func (ra *ResAccumulator) Intersection(other resmap.ResMap) error {
173
+ otherIds := other.AllIds()
174
for _, curId := range ra.resMap.AllIds() {
175
toDelete := true
- for _, otherId := range other.AllIds() {
176
+ for _, otherId := range otherIds {
177
if otherId == curId {
178
toDelete = false
179
break
0 commit comments