Merge pull request #4 from hugovdm/units-staging

ICU-13489 Early-return from ProcessLdml if it's not going to do anything.
This commit is contained in:
Shane F. Carr 2020-01-17 11:42:45 +01:00 committed by GitHub
commit e156a903f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -268,6 +268,10 @@ public final class LdmlConverter {
.flatMap(t -> TYPE_TO_DIR.get(t).stream())
.collect(toImmutableList());
if (splitDirs.isEmpty()) {
return;
}
Map<IcuLocaleDir, DependencyGraph> graphMetadata = new HashMap<>();
splitDirs.forEach(d -> graphMetadata.put(d, new DependencyGraph()));