diff --git a/lib/src/utils.dart b/lib/src/utils.dart index c1e1755..ef85526 100644 --- a/lib/src/utils.dart +++ b/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; }