mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-11 21:37:47 +01:00
refactor: extract common element from if statement
This commit is contained in:
parent
d48b407f5b
commit
3118b54632
@ -157,7 +157,6 @@ public class Main {
|
||||
}
|
||||
if (cli.hasOption("o") || cli.hasOption("output")) {
|
||||
outDir = new File(cli.getOptionValue("o"));
|
||||
decoder.setOutDir(outDir);
|
||||
} else {
|
||||
// make out folder manually using name of apk
|
||||
String outName = apkName;
|
||||
@ -167,9 +166,9 @@ public class Main {
|
||||
// make file from path
|
||||
outName = new File(outName).getName();
|
||||
outDir = new File(outName);
|
||||
decoder.setOutDir(outDir);
|
||||
}
|
||||
|
||||
decoder.setOutDir(outDir);
|
||||
decoder.setApkFile(new File(apkName));
|
||||
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user