Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Commit 9f6d19a

Browse files
committed
#45, not needed, object properties are not void
1 parent fa27384 commit 9f6d19a

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/main/kotlin/io/openapiprocessor/core/converter/wrapper/NullDataTypeWrapper.kt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class NullDataTypeWrapper(
3838
val wrappedType = NullDataType (
3939
targetType.getName(),
4040
targetType.getPkg(),
41-
checkNone (dataType)
41+
dataType
4242
)
4343

4444
return wrappedType
@@ -53,12 +53,4 @@ class NullDataTypeWrapper(
5353
// return finder.findNullTypeMapping()?.getTargetType()
5454
}
5555

56-
private fun checkNone(dataType: DataType): DataType {
57-
if (dataType is NoneDataType) {
58-
return dataType.wrappedInResult ()
59-
}
60-
61-
return dataType
62-
}
63-
6456
}

0 commit comments

Comments
 (0)