don't put empty entries into changelogs

This commit is contained in:
2024-06-29 23:00:00 +02:00
parent aa429794f3
commit 9640594625

View File

@@ -113,9 +113,10 @@ public class ObjectMetadata implements Serializable {
for (var h : all) {
var logEntry = ObjectChangelogEntry.newBuilder();
if (!_changelog.containsKey(h))
continue;
logEntry.setHost(h.toString());
if (_changelog.containsKey(h))
logEntry.setVersion(_changelog.get(h));
logEntry.setVersion(_changelog.get(h));
changelogBuilder.addEntries(logEntry.build());
}
return changelogBuilder.build();