Produce an empty map if so directed

This commit is contained in:
Jesse Glick 2025-09-24 10:39:32 -04:00
parent c7ecb73353
commit a244175677
No known key found for this signature in database
GPG Key ID: 1DDA69D94B624311
1 changed files with 0 additions and 3 deletions

View File

@ -632,9 +632,6 @@ public class ConfigurationAsCode extends ManagementLink {
}
tuples.add(new NodeTuple(new ScalarNode(Tag.STR, entry.getKey(), null, null, PLAIN), valueNode));
}
if (tuples.isEmpty()) {
return null;
}
return new MappingNode(Tag.MAP, tuples, BLOCK);