Skip to content

Commit

Permalink
Fix detect
Browse files Browse the repository at this point in the history
  • Loading branch information
samczsun committed Jan 13, 2018
1 parent d4c162f commit 52396e3
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ public static int run(String[] args) throws ClassNotFoundException {
return 4;
}

if (configuration.isDetect()) {
return run(configuration);
}

if (configuration.getOutput() == null) {
logger.error("An output JAR must be specified");
return 5;
Expand All @@ -106,6 +110,10 @@ public static int run(String[] args) throws ClassNotFoundException {
return 6;
}

return run(configuration);
}

private static int run(Configuration configuration) {
Deobfuscator deobfuscator = new Deobfuscator(configuration);

try {
Expand Down

0 comments on commit 52396e3

Please sign in to comment.