Skip to content

Commit a244175

Browse files
committed
Produce an empty map if so directed
1 parent c7ecb73 commit a244175

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

plugin/src/main/java/io/jenkins/plugins/casc/ConfigurationAsCode.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -632,9 +632,6 @@ public Node toYaml(CNode config) throws ConfiguratorException {
632632
}
633633
tuples.add(new NodeTuple(new ScalarNode(Tag.STR, entry.getKey(), null, null, PLAIN), valueNode));
634634
}
635-
if (tuples.isEmpty()) {
636-
return null;
637-
}
638635

639636
return new MappingNode(Tag.MAP, tuples, BLOCK);
640637

0 commit comments

Comments
 (0)