Skip to content

Commit

Permalink
Use each_key instead of each and remove the unused _data block argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos committed Feb 28, 2024
1 parent 7a5f3c1 commit 555613f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _plugins/localization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def date(config)
def setup(config)
@locale ||= {}
@locale_date ||= {}
config['locales_set'].each do |lang_id, _data|
config['locales_set'].each_key do |lang_id|
next if @locale.key?(lang_id) && @locale_date.key?(lang_id)

@locale[lang_id] = {}
Expand Down
2 changes: 1 addition & 1 deletion tests/feedcheck.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,4 @@ def create_job_summary(error_messages)
abort
end
File.delete('error-summary.md') if File.exist?('error-summary.md')
puts 'All feeds passed checks!'
puts 'All feeds passed checks!'

0 comments on commit 555613f

Please sign in to comment.