mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
DEV: Apply Rubocop redundant return style
This commit is contained in:
parent
be15abcf7f
commit
067696df8f
30 changed files with 45 additions and 45 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue