Remove unnecessary `ensure` block.

This commit is contained in:
Guo Xiang Tan 2017-07-05 10:05:28 +09:00
parent f8f677a697
commit 4e8b80c157
1 changed files with 0 additions and 2 deletions

View File

@ -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