Skip to content
Snippets Groups Projects
Commit c1e2ac47 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

remove useless ensure

parent 8e1ccc10
No related branches found
No related tags found
No related merge requests found
......@@ -110,8 +110,7 @@ class Communication::Website::Imported::Post < ApplicationRecord
response = http.request(request)
begin
post.featured_image.attach(io: StringIO.new(response.body), filename: filename, content_type: 'image/jpeg')
ensure
tempfile.close!
rescue
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment