[FIX] Избыточные проверки в unmarkOptional

This commit is contained in:
Gravit 2019-02-28 16:26:45 +07:00
parent 2300584501
commit df39276c2a
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -266,13 +266,14 @@ public void unmarkOptional(OptionalFile file) {
if (file.dependencies != null) { if (file.dependencies != null) {
for (OptionalFile f : file.dependencies) { for (OptionalFile f : file.dependencies) {
if (!f.mark) continue; if (!f.mark) continue;
if (f.dependenciesCount == null) { unmarkOptional(f);
/*if (f.dependenciesCount == null) {
unmarkOptional(f); unmarkOptional(f);
} else if (f.dependenciesCount.size() <= 1) { } else if (f.dependenciesCount.size() <= 1) {
f.dependenciesCount.clear(); f.dependenciesCount.clear();
f.dependenciesCount = null; f.dependenciesCount = null;
unmarkOptional(f); unmarkOptional(f);
} }*/
} }
} }
} }