mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
DEV: Apply Rubocop redundant return style
This commit is contained in:
@ -882,7 +882,7 @@ class ImportScripts::DiscuzX < ImportScripts::Base
|
||||
return nil
|
||||
end
|
||||
|
||||
return upload, real_filename
|
||||
[upload, real_filename]
|
||||
end
|
||||
|
||||
# find the uploaded file and real name from the db
|
||||
@ -938,12 +938,12 @@ class ImportScripts::DiscuzX < ImportScripts::Base
|
||||
return nil
|
||||
end
|
||||
|
||||
return upload, real_filename
|
||||
[upload, real_filename]
|
||||
rescue Mysql2::Error => e
|
||||
puts "SQL Error"
|
||||
puts e.message
|
||||
puts sql
|
||||
return nil
|
||||
nil
|
||||
end
|
||||
|
||||
def first_exists(*items)
|
||||
|
Reference in New Issue
Block a user