File tree Expand file tree Collapse file tree
openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/processor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,18 +58,18 @@ class MappingReader(private val validator: MappingValidator = MappingValidator()
5858 log.warn (" the mapping version key \" openapi-processor-spring\" is deprecated, please use \" openapi-processor-mapping\" " )
5959 }
6060
61- if (version.isV2()) {
61+ return if (version.isV2()) {
6262 validate(mapping, version.getSafeVersion())
6363
6464 val mapper = createV2Parser()
65- return mapper.readValue (mapping, MappingV2 ::class .java)
65+ mapper.readValue (mapping, MappingV2 ::class .java)
6666 } else {
6767 // assume v1
6868 log.info (" please update the mapping to the latest format" )
6969 log.info (" see https://openapiprocessor.io/spring/mapping/structure.html" )
7070
7171 val mapper = createV1Parser ()
72- return mapper.readValue (mapping, Mapping ::class .java)
72+ mapper.readValue (mapping, Mapping ::class .java)
7373 }
7474 }
7575
You can’t perform that action at this time.
0 commit comments