mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Избыточные проверки в unmarkOptional
This commit is contained in:
parent
2300584501
commit
df39276c2a
1 changed files with 3 additions and 2 deletions
|
@ -266,13 +266,14 @@ public void unmarkOptional(OptionalFile file) {
|
|||
if (file.dependencies != null) {
|
||||
for (OptionalFile f : file.dependencies) {
|
||||
if (!f.mark) continue;
|
||||
if (f.dependenciesCount == null) {
|
||||
unmarkOptional(f);
|
||||
/*if (f.dependenciesCount == null) {
|
||||
unmarkOptional(f);
|
||||
} else if (f.dependenciesCount.size() <= 1) {
|
||||
f.dependenciesCount.clear();
|
||||
f.dependenciesCount = null;
|
||||
unmarkOptional(f);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue