From 893f39ef4e5286016ea23b9768573df40adaaa46 Mon Sep 17 00:00:00 2001 From: Ethan Uberseder Date: Tue, 9 Jan 2024 17:52:21 -0500 Subject: [PATCH] remove unnecessary check --- .../io/fabric8/crd/generator/AbstractJsonSchema.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/crd-generator/api/src/main/java/io/fabric8/crd/generator/AbstractJsonSchema.java b/crd-generator/api/src/main/java/io/fabric8/crd/generator/AbstractJsonSchema.java index dc3fd03136a..92a61ec8d36 100644 --- a/crd-generator/api/src/main/java/io/fabric8/crd/generator/AbstractJsonSchema.java +++ b/crd-generator/api/src/main/java/io/fabric8/crd/generator/AbstractJsonSchema.java @@ -392,13 +392,11 @@ static ParameterMap from(ClassRef classRef, ParameterMap parentMappings) { TypeDef def = Types.typeDefFrom(classRef); Map mappings = new HashMap<>(); - if(!def.getParameters().isEmpty()) { - for(int i=0; i