From 4e8b80c157485e92166740abbf776a27954ee238 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Wed, 5 Jul 2017 10:05:28 +0900 Subject: [PATCH] Remove unnecessary `ensure` block. --- app/jobs/regular/pull_hotlinked_images.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/jobs/regular/pull_hotlinked_images.rb b/app/jobs/regular/pull_hotlinked_images.rb index 10dffa6a0ee..5804a21dad8 100644 --- a/app/jobs/regular/pull_hotlinked_images.rb +++ b/app/jobs/regular/pull_hotlinked_images.rb @@ -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