Skip to content

Commit

Permalink
Remove unnecessary filter
Browse files Browse the repository at this point in the history
  • Loading branch information
mcruzdev committed Oct 15, 2024
1 parent d425fcc commit 34024bc
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public AddNamespaceDecorator(String namespace) {
public void visit(KubernetesListBuilder list) {
List<HasMetadata> buildItems = list.buildItems()
.stream()
.filter(obj -> obj instanceof HasMetadata)
.peek(obj -> {
if (isEligibleForChangingNamespace(obj)) {
obj.setMetadata(obj.getMetadata().edit().withNamespace(namespace).build());
Expand Down

0 comments on commit 34024bc

Please sign in to comment.