From d412cd370e1e49830d7e82f56473f6356fe5a4af Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Thu, 22 May 2014 18:46:22 -0400 Subject: [PATCH] FIX: compare Time with nil error in dev env. Remove nils when looking for max mtime. --- lib/sass/discourse_stylesheets.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sass/discourse_stylesheets.rb b/lib/sass/discourse_stylesheets.rb index ea8f75afc11..1eee15afebc 100644 --- a/lib/sass/discourse_stylesheets.rb +++ b/lib/sass/discourse_stylesheets.rb @@ -83,7 +83,7 @@ class DiscourseStylesheets 0 else [ Dir.glob("#{Rails.root}/app/assets/stylesheets/**/*.*css").map {|x| File.mtime(x) }.max, - Dir.glob("#{Rails.root}/plugins/**/assets/stylesheets/**/*.*css").map {|x| File.mtime(x) }.max ].max.to_i + Dir.glob("#{Rails.root}/plugins/**/assets/stylesheets/**/*.*css").map {|x| File.mtime(x) }.max ].compact.max.to_i end theme = (cs = ColorScheme.enabled) ? "#{cs.id}-#{cs.version}" : 0