mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-12 05:47:46 +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")) {
|
if (cli.hasOption("o") || cli.hasOption("output")) {
|
||||||
outDir = new File(cli.getOptionValue("o"));
|
outDir = new File(cli.getOptionValue("o"));
|
||||||
decoder.setOutDir(outDir);
|
|
||||||
} else {
|
} else {
|
||||||
// make out folder manually using name of apk
|
// make out folder manually using name of apk
|
||||||
String outName = apkName;
|
String outName = apkName;
|
||||||
@ -167,9 +166,9 @@ public class Main {
|
|||||||
// make file from path
|
// make file from path
|
||||||
outName = new File(outName).getName();
|
outName = new File(outName).getName();
|
||||||
outDir = new File(outName);
|
outDir = new File(outName);
|
||||||
decoder.setOutDir(outDir);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
decoder.setOutDir(outDir);
|
||||||
decoder.setApkFile(new File(apkName));
|
decoder.setApkFile(new File(apkName));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user