mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 19:29:51 +00:00
Remove unnecessary ensure
block.
This commit is contained in:
parent
f8f677a697
commit
4e8b80c157
@ -85,8 +85,6 @@ module Jobs
|
||||
end
|
||||
rescue => e
|
||||
Rails.logger.info("Failed to pull hotlinked image: #{src} post:#{post_id}\n" + e.message + "\n" + e.backtrace.join("\n"))
|
||||
ensure
|
||||
hotlinked&.close! rescue nil
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user