Change a call to #find into a more semantic #any? in css2sass.

This commit is contained in:
Nathan Weizenbaum 2008-04-29 16:42:11 -07:00
parent c5b86d9d34
commit 7bde632af8
1 changed files with 1 additions and 1 deletions

View File

@ -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)}"