Skip to content

Commit 52396e3

Browse files
committed
Fix detect
1 parent d4c162f commit 52396e3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/com/javadeobfuscator/deobfuscator/DeobfuscatorMain.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ public static int run(String[] args) throws ClassNotFoundException {
8888
return 4;
8989
}
9090

91+
if (configuration.isDetect()) {
92+
return run(configuration);
93+
}
94+
9195
if (configuration.getOutput() == null) {
9296
logger.error("An output JAR must be specified");
9397
return 5;
@@ -106,6 +110,10 @@ public static int run(String[] args) throws ClassNotFoundException {
106110
return 6;
107111
}
108112

113+
return run(configuration);
114+
}
115+
116+
private static int run(Configuration configuration) {
109117
Deobfuscator deobfuscator = new Deobfuscator(configuration);
110118

111119
try {

0 commit comments

Comments
 (0)