Skip to content

Commit

Permalink
Merge pull request #1536 from AISS-2021-L-ING-G04/dev
Browse files Browse the repository at this point in the history
refactor: remove repeated else-if
  • Loading branch information
gracekarina committed Apr 8, 2021
2 parents fe7034c + 7c5532d commit 41578a6
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,23 +161,6 @@ public List<Parameter> processParameters(List<Parameter> parameters) {
}

}
else if(parameter.getContent() != null){
Map<String,MediaType> content = parameter.getContent();
for( String mediaName : content.keySet()) {
MediaType mediaType = content.get(mediaName);
if(mediaType.getSchema()!= null) {
schema = mediaType.getSchema();
if (schema != null) {
schemaProcessor.processSchema(schema);
}
}
if(mediaType.getExamples() != null) {
for(Example ex: mediaType.getExamples().values()){
exampleProcessor.processExample(ex);
}
}
}
}
}

return processedPathLevelParameters;
Expand Down

0 comments on commit 41578a6

Please sign in to comment.