Skip to content

Commit

Permalink
Fix static access to non-static method
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-sh committed Aug 9, 2021
1 parent 601ad1a commit 06e01f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/deepoove/swagger/diff/cli/CLI.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ public void run(JCommander jCommander) {
return;
}
if (v){
JCommander.getConsole().println("1.2.2");
jCommander.getConsole().println("1.2.2");
return;
}

SwaggerDiff diff = SwaggerDiff.SWAGGER_VERSION_V2.equals(version)
? SwaggerDiff.compareV2(oldSpec, newSpec) : SwaggerDiff.compareV1(oldSpec, newSpec);

String render = getRender(outputMode).render(diff);
JCommander.getConsole().println(render);
jCommander.getConsole().println(render);
}

private Render getRender(String outputMode) {
Expand Down

0 comments on commit 06e01f6

Please sign in to comment.