Skip to content

Commit

Permalink
Use do..end rather than {..} for multiline lambda.
Browse files Browse the repository at this point in the history
rubocop: Style/BlockDelimiters
  • Loading branch information
xwmx committed Sep 16, 2015
1 parent 8f612eb commit 3d6f196
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions .rubocop_todo.yml
Expand Up @@ -19,12 +19,6 @@ Metrics/LineLength:
Metrics/MethodLength:
Max: 11

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
Style/BlockDelimiters:
Enabled: false

# Offense count: 1
Style/ClassAndModuleCamelCase:
Enabled: false
Expand Down
4 changes: 2 additions & 2 deletions lib/iso-639.rb
Expand Up @@ -500,7 +500,7 @@ class ISO_639 < Array

# An inverted index generated from the ISO_639_2 data. Used for searching
# all words and codes in all fields.
INVERTED_INDEX = lambda {
INVERTED_INDEX = lambda do
index = {}
ISO_639_2.each_with_index do |record, i|
record.each do |field|
Expand All @@ -518,7 +518,7 @@ class ISO_639 < Array
end
end
return index
}.call
end.call

# The ISO 639-1 dataset as an array of entries. Each entry is an array with
# the following format:
Expand Down

0 comments on commit 3d6f196

Please sign in to comment.