Skip to content

Commit

Permalink
Fix rubocop failure introduced in 9a8777f
Browse files Browse the repository at this point in the history
  • Loading branch information
dvandersluis authored and bbatsov committed Dec 1, 2020
1 parent c21fe12 commit dd4bf2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/naming/variable_number.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def message(style)
end

def allowed_identifier?(name)
allowed_identifiers.include?(name.to_s.gsub('@', ''))
allowed_identifiers.include?(name.to_s.delete('@'))
end

def allowed_identifiers
Expand Down

0 comments on commit dd4bf2b

Please sign in to comment.