diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index ee59c2e..0fec05e 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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 diff --git a/lib/iso-639.rb b/lib/iso-639.rb index c16bdc9..bfe33bf 100644 --- a/lib/iso-639.rb +++ b/lib/iso-639.rb @@ -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| @@ -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: