Skip to content

Commit

Permalink
Update plugin/src/main/java/com/yelp/codegen/SharedCodegen.kt
Browse files Browse the repository at this point in the history
Co-Authored-By: Nicola Corti <[email protected]>
  • Loading branch information
macisamuele and cortinico committed May 15, 2019
1 parent 8c525dd commit 10968ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/src/main/java/com/yelp/codegen/SharedCodegen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ abstract class SharedCodegen : DefaultCodegen(), CodegenConfig {
* Determine if the swagger operation consumes mutipart content.
*/
private fun isMultipartOperation(operation: Operation?): Boolean {
return operation?.consumes != null && operation.consumes.any {
return operation?.consumes?.any { it == "multipart/form-data" } ?: false
consume -> consume == "multipart/form-data"
}
}
Expand Down

0 comments on commit 10968ae

Please sign in to comment.