Skip to content

Commit

Permalink
rubocop -A
Browse files Browse the repository at this point in the history
```
Inspecting 53 files
........................C............................

Offenses:

lib/generators/aws_record/base.rb:150:9: C: [Corrected] Style/HashEachMethods: Use each_key instead of each and remove the unused _rw_units block argument.
        options['table_config'].each do |config, _rw_units| ...
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

53 files inspected, 1 offense detected, 1 offense corrected

Tip: Based on detected gems, the following RuboCop extension libraries might be helpful:
  * rubocop-rails (https://rubygems.org/gems/rubocop-rails)

You can opt out of this message by adding the following to your config (see https://docs.rubocop.org/rubocop/extensions.html#extension-suggestions for more options):
  AllCops:
    SuggestExtensions: false
```
  • Loading branch information
Keito Kira committed Dec 12, 2023
1 parent ca30aec commit ef03396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/aws_record/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def parse_table_config!
[idx.name, parse_rw_units(idx.name)]
end.to_h

options['table_config'].each do |config, _rw_units|
options['table_config'].each_key do |config|
next if config == 'primary'

gsi = @gsis.select { |idx| idx.name == config }
Expand Down

0 comments on commit ef03396

Please sign in to comment.