mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +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
|
@ -180,7 +180,7 @@ class ImportScripts::NodeBB < ImportScripts::Base
|
|||
if is_external
|
||||
# download external image
|
||||
begin
|
||||
string_io = open(picture, read_timeout: 5)
|
||||
string_io = uri.open(read_timeout: 5)
|
||||
rescue Net::ReadTimeout
|
||||
puts "timeout downloading avatar for user #{imported_user.id}"
|
||||
return nil
|
||||
|
@ -246,7 +246,7 @@ class ImportScripts::NodeBB < ImportScripts::Base
|
|||
|
||||
if is_external
|
||||
begin
|
||||
string_io = open(picture, read_timeout: 5)
|
||||
string_io = uri.open(read_timeout: 5)
|
||||
rescue Net::ReadTimeout
|
||||
return nil
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue