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

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