2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

DEV: update rubocop to version 0.77

We like to stay as close as possible to latest with rubocop cause the cops
get better.

This update required some code changes, specifically the default is to avoid
explicit returns where implicit is done

Also this renames a few rules
This commit is contained in:
Sam Saffron 2019-12-10 11:48:27 +11:00
parent 8e489ec8f8
commit 0c52537f10
23 changed files with 39 additions and 39 deletions

View file

@ -833,9 +833,9 @@ class ImportScripts::DiscuzX < ImportScripts::Base
file_name = "#{part_4}_avatar_big.jpg"
if absolute
return File.join(DISCUZX_BASE_DIR, AVATAR_DIR, part_1, part_2, part_3, file_name), file_name
[File.join(DISCUZX_BASE_DIR, AVATAR_DIR, part_1, part_2, part_3, file_name), file_name]
else
return File.join(AVATAR_DIR, part_1, part_2, part_3, file_name), file_name
[File.join(AVATAR_DIR, part_1, part_2, part_3, file_name), file_name]
end
end