mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Change a call to #find into a more semantic #any? in css2sass.
This commit is contained in:
parent
c5b86d9d34
commit
7bde632af8
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ module Sass
|
|||
|
||||
class RuleNode
|
||||
def to_sass(tabs, opts = {})
|
||||
str = "\n#{' ' * tabs}#{rule}#{children.find{|c| c.is_a? AttrNode } ? "\n" : ''}"
|
||||
str = "\n#{' ' * tabs}#{rule}#{children.any? { |c| c.is_a? AttrNode } ? "\n" : ''}"
|
||||
|
||||
children.each do |child|
|
||||
str << "#{child.to_sass(tabs + 1, opts)}"
|
||||
|
|
Loading…
Add table
Reference in a new issue