Skip to content

Commit

Permalink
process_less method should call cleanup before checks + add empty check
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspierson committed Mar 13, 2012
1 parent 38fa312 commit b6a7e5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion css2less.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ def initialize(css=nil)
end

def process_less
cleanup
if @css.nil?
return false
end
cleanup
if @css.empty?
return false
end
generate_tree
render_less
return true
Expand Down

0 comments on commit b6a7e5d

Please sign in to comment.