mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
BUGFIX: explicit code is often better...
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user