Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Sijawusz Pur Rahnama <sija@sija.pl>
  • Loading branch information
gdotdesign and Sija authored Nov 25, 2024
1 parent f76fdb3 commit 3193496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scope.cr
Original file line number Diff line number Diff line change
Expand Up @@ -351,15 +351,15 @@ module Mint
build(node.children, node)
build(node.styles, node)

if (root = find_parent_by_class(parent, [Ast::Component, Ast::Test])) &&
if (root = find_parent_by_class(parent, {Ast::Component, Ast::Test})) &&
(ref = node.ref)
add(root, ref.value, node)
end
when Ast::HtmlComponent
build(node.attributes, node)
build(node.children, node)

if (root = find_parent_by_class(parent, [Ast::Component, Ast::Test])) &&
if (root = find_parent_by_class(parent, {Ast::Component, Ast::Test})) &&
(ref = node.ref)
component =
@ast.components.find(&.name.value.==(node.component.value))
Expand Down

0 comments on commit 3193496

Please sign in to comment.