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:
parent
8e489ec8f8
commit
0c52537f10
23 changed files with 39 additions and 39 deletions
|
@ -222,7 +222,7 @@ class ImportScripts::Base
|
|||
|
||||
if existing == import_ids.length
|
||||
puts "Skipping #{import_ids.length} already imported #{type}"
|
||||
return true
|
||||
true
|
||||
end
|
||||
ensure
|
||||
connection.exec('DROP TABLE import_ids') unless connection.nil?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue