Skip to content

Commit

Permalink
fix -Naming/AccessorMethodName
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelglass committed Jan 2, 2020
1 parent 6a7703c commit c27dd57
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
5 changes: 0 additions & 5 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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|$))
Expand Down
6 changes: 1 addition & 5 deletions app/services/account_merger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -33,10 +33,6 @@ def merge!

private

def get_answer
gets.chomp
end

def user_desc(user)
"#{user.full_name} (#{user.id})"
end
Expand Down

0 comments on commit c27dd57

Please sign in to comment.