Fix Style/Semicolon.

This commit is contained in:
Markus Reiter 2016-09-21 14:36:20 +02:00
parent 0406f918a6
commit 4861ee6c2d
2 changed files with 1 additions and 8 deletions

View File

@ -281,13 +281,6 @@ Style/RegexpLiteral:
- 'Homebrew/keg.rb'
- 'Homebrew/version.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowAsExpressionSeparator.
Style/Semicolon:
Exclude:
- 'Homebrew/descriptions.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: SupportedStyles.

View File

@ -136,6 +136,6 @@ class Descriptions
def short_name_counts
@short_name_counts ||=
short_names.values.each_with_object(Hash.new(0)) { |name, counts| counts[name] += 1; counts }
short_names.values.each_with_object(Hash.new(0)) { |name, counts| counts[name] += 1 }
end
end