lib/scss_lint/sass/tree.rb in scss_lint-0.50.2 vs lib/scss_lint/sass/tree.rb in scss_lint-0.50.3

- old
+ new

@@ -120,12 +120,14 @@ def children add_line_numbers_to_args(args) # Keyword mapping is String -> Expr, so convert the string to a variable # node that supports lint reporting - keyword_exprs = keywords.as_stored.map do |var_name, var_expr| - [create_variable(var_name), var_expr] - end if keywords.any? + if keywords.any? + keyword_exprs = keywords.as_stored.map do |var_name, var_expr| + [create_variable(var_name), var_expr] + end + end concat_expr_lists super, args, keyword_exprs, splat end end