diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index b7f87fe7e..f8ccd9158 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -491,11 +491,6 @@ Metrics/ModuleLength: Metrics/PerceivedComplexity: Max: 12 -# Offense count: 1 -Naming/AccessorMethodName: - Exclude: - - 'app/services/account_merger.rb' - # Offense count: 6 # Configuration parameters: ForbiddenDelimiters. # ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$)) diff --git a/app/services/account_merger.rb b/app/services/account_merger.rb index f30a94c1b..246436783 100644 --- a/app/services/account_merger.rb +++ b/app/services/account_merger.rb @@ -21,7 +21,7 @@ def merge! Is this cool? (y/n) EOT - return unless get_answer.casecmp('y') + return unless gets.chomp.casecmp('y') to_destroy.destroy_all @@ -33,10 +33,6 @@ def merge! private - def get_answer - gets.chomp - end - def user_desc(user) "#{user.full_name} (#{user.id})" end