Permalink
Browse files

Minor cleanups for LessTemplate

  • Loading branch information...
1 parent 72b8d93 commit e6ba2f4dd19df933e368b2717f6d8ad0df3d8cea @guilleiguaran guilleiguaran committed Jul 5, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/sprockets/less_template.rb
@@ -13,7 +13,6 @@ def initialize_engine
end
def prepare
- nil
end
def evaluate(context, locals, &block)
@@ -26,7 +25,7 @@ def evaluate(context, locals, &block)
parser = ::Less::Parser.new(options)
parser.imports.each do |path|
pathname = context.resolve(path) rescue nil
- context.depend_on(path) unless path.nil?
+ context.depend_on(pathname) if pathname
end
parser.parse(data).to_css
rescue ::Less::ParseError => e

0 comments on commit e6ba2f4

Please sign in to comment.