Skip to content

Commit 4bd5e8f

Browse files
committed
remove dup
Signed-off-by: Avraham Shalev <[email protected]>
1 parent 1cd9be3 commit 4bd5e8f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

exceptions/exceptionprocessor.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,6 @@ func (p *Processor) hasException(clusterName string, designator *armotypes.Porta
167167
return false // if designators are empty
168168
}
169169

170-
if attributes.GetCluster() != "" && !p.compareCluster(attributes.GetCluster(), clusterName) { // TODO - where do we receive cluster name from?
171-
return false // cluster name does not match
172-
}
173-
174-
if attributes.GetResourceID() != "" && !p.compareResourceID(workload, attributes.GetResourceID()) {
175-
return false // resourceID does not match
176-
}
177-
178170
if attributes.GetNamespace() != "" && !p.compareNamespace(workload, attributes.GetNamespace()) {
179171
return false // namespaces do not match
180172
}

0 commit comments

Comments
 (0)