mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
BUGFIX: explicit code is often better...
This commit is contained in:
parent
609d1e05cd
commit
3d94c671db
1 changed files with 6 additions and 1 deletions
|
@ -83,7 +83,12 @@ class OptimizedImage < ActiveRecord::Base
|
||||||
|
|
||||||
`convert #{instructions}`
|
`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
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue