Skip to content

Commit 93a1f53

Browse files
Update plugin/src/main/java/com/yelp/codegen/SharedCodegen.kt
Co-Authored-By: Nicola Corti <[email protected]>
1 parent 8c525dd commit 93a1f53

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plugin/src/main/java/com/yelp/codegen/SharedCodegen.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,7 @@ abstract class SharedCodegen : DefaultCodegen(), CodegenConfig {
374374
* Determine if the swagger operation consumes mutipart content.
375375
*/
376376
private fun isMultipartOperation(operation: Operation?): Boolean {
377-
return operation?.consumes != null && operation.consumes.any {
378-
consume -> consume == "multipart/form-data"
379-
}
377+
return operation?.consumes?.any { it == "multipart/form-data" } ?: false
380378
}
381379

382380
/**

0 commit comments

Comments
 (0)