Skip to content

Commit cba3a43

Browse files
committed
better code formatting
1 parent 1ed3d65 commit cba3a43

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2181,12 +2181,12 @@ public CodegenProperty fromProperty(String name, Schema p) {
21812181

21822182
// set is enum to true when a model is enum and type is non-primitive.
21832183
if (StringUtils.isNotBlank(p.get$ref()) && globalSchemas != null) {
2184-
Schema ref = globalSchemas.get(ModelUtils.getSimpleRef(p.get$ref()));
2185-
if (ref != null) {
2186-
if (ref.getEnum() != null) {
2187-
property.isEnum = true;
2188-
}
2189-
}
2184+
Schema ref = globalSchemas.get(ModelUtils.getSimpleRef(p.get$ref()));
2185+
if (ref != null) {
2186+
if (ref.getEnum() != null) {
2187+
property.isEnum = true;
2188+
}
2189+
}
21902190
}
21912191

21922192
setNonArrayMapProperty(property, type);

0 commit comments

Comments
 (0)