mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
DEV: Fix rubocop issues (#14715)
This commit is contained in:
parent
6aa6275f3f
commit
69f0f48dc0
27 changed files with 65 additions and 69 deletions
|
@ -333,7 +333,7 @@ class ImportScripts::ZendeskApi < ImportScripts::Base
|
|||
attempts = 0
|
||||
|
||||
begin
|
||||
open("#{$1}") do |image|
|
||||
URI.parse(image_url).open do |image|
|
||||
# IMAGE_DOWNLOAD_PATH is whatever image, it will be replaced with the downloaded image
|
||||
File.open(IMAGE_DOWNLOAD_PATH, "wb") do |file|
|
||||
file.write(image.read)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue