From dd75f7241eaf7178182cf675f2954fe4c046d0a1 Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Sun, 9 Oct 2011 09:19:27 -0400 Subject: [PATCH] micro optimization via @brainopia --- lib/compass/sass_extensions/sprites/sprite_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compass/sass_extensions/sprites/sprite_methods.rb b/lib/compass/sass_extensions/sprites/sprite_methods.rb index 77674089..1fc5b43d 100644 --- a/lib/compass/sass_extensions/sprites/sprite_methods.rb +++ b/lib/compass/sass_extensions/sprites/sprite_methods.rb @@ -112,7 +112,7 @@ module Compass # Checks whether this sprite is outdated def outdated? 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 true end