Fix linter

This commit is contained in:
Alex Ling 2022-05-29 05:28:50 +00:00
parent 2fb620211d
commit df618704ea

View File

@ -5,7 +5,7 @@ private def node_has_key(node : YAML::Nodes::Mapping, key : String)
.map_with_index { |n, i| {n, i} }
.select(&.[1].even?)
.map(&.[0])
.select(&.is_a?(YAML::Nodes::Scalar))
.select(YAML::Nodes::Scalar)
.map(&.as(YAML::Nodes::Scalar).value)
.includes? key
end