Skip to content

Commit 1385a15

Browse files
committed
moved count
1 parent fe3c3cc commit 1385a15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/DefaultCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,11 +672,11 @@ public CodegenOperation fromOperation(String path, String httpMethod, Operation
672672
for(String key: operation.getConsumes()) {
673673
Map<String, String> mediaType = new HashMap<String, String>();
674674
mediaType.put("mediaType", key);
675-
count += 1;
676675
if (count < operation.getConsumes().size())
677676
mediaType.put("hasMore", "true");
678677
else
679678
mediaType.put("hasMore", null);
679+
count += 1;
680680
c.add(mediaType);
681681
}
682682
op.consumes = c;

0 commit comments

Comments
 (0)