BUGFIX: explicit code is often better...

This commit is contained in:
Régis Hanol 2014-07-04 16:05:50 +02:00
parent 609d1e05cd
commit 3d94c671db

View File

@ -83,7 +83,12 @@ class OptimizedImage < ActiveRecord::Base
`convert #{instructions}`
ImageOptim.new.optimize_image(to) rescue nil if $?.exitstatus == 0
if $?.exitstatus == 0
ImageOptim.new.optimize_image(to) rescue nil
true
else
false
end
end
end