Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored Oct 7, 2024
1 parent ad84210 commit 4e49bdf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkgs/yaml_edit/lib/src/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4e49bdf

Please sign in to comment.