Skip to content

Commit

Permalink
exception for rubocop Style/HashEachMethods suggestion
Browse files Browse the repository at this point in the history
false positive, see e.g. rubocop/rubocop#12444
  • Loading branch information
jmartin-sul committed Dec 5, 2023
1 parent 9ebe826 commit 00f6dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/collections_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def collection_params
def wasapi_provider_accounts
@wasapi_provider_accounts = []
Settings.wasapi_providers.each do |provider, provider_info|
provider_info.accounts.each do |account, _|
provider_info.accounts.each do |account, _| # rubocop:disable Style/HashEachMethods rubocop thinks each entry is a regular Hash, but accounts elements are actually Arrays of the form [Symbol, Config::options]. so there's no each_key method.
@wasapi_provider_accounts << ["#{provider_info.name} (#{provider}) > #{account}",
"#{provider}:#{account}"]
end
Expand Down

0 comments on commit 00f6dd8

Please sign in to comment.