diff --git a/pkgs/yaml_edit/lib/src/utils.dart b/pkgs/yaml_edit/lib/src/utils.dart index c1e17556a..ef85526d3 100644 --- a/pkgs/yaml_edit/lib/src/utils.dart +++ b/pkgs/yaml_edit/lib/src/utils.dart @@ -76,10 +76,14 @@ bool isBlockNode(YamlNode node) { if (node is YamlList && (node.style == CollectionStyle.BLOCK || - node.style == CollectionStyle.ANY)) return true; + node.style == CollectionStyle.ANY)) { + return true; + } if (node is YamlMap && (node.style == CollectionStyle.BLOCK || - node.style == CollectionStyle.ANY)) return true; + node.style == CollectionStyle.ANY)) { + return true; + } return false; }