DEV: Apply Rubocop redundant return style

This commit is contained in:
Penar Musaraj
2019-11-14 15:10:51 -05:00
parent be15abcf7f
commit 067696df8f
30 changed files with 45 additions and 45 deletions

View File

@ -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)