micro optimization via @brainopia

This commit is contained in:
Scott Davis 2011-10-09 09:19:27 -04:00
parent 93ff7b31ec
commit dd75f7241e

View File

@ -112,7 +112,7 @@ module Compass
# Checks whether this sprite is outdated # Checks whether this sprite is outdated
def outdated? def outdated?
if File.exists?(filename) if File.exists?(filename)
return @images.map(&:mtime).any? { |imtime| imtime.to_i > self.mtime.to_i } return @images.any? {|image| image.mtime.to_i > self.mtime.to_i }
end end
true true
end end