From 6c01e10b3ae00c177b54066e9930d6d0744d70c8 Mon Sep 17 00:00:00 2001 From: Cory Lown Date: Tue, 11 Jul 2023 14:43:13 -0400 Subject: [PATCH] Run rubocop autocorrect --- lib/traject/config/sirsi_config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/traject/config/sirsi_config.rb b/lib/traject/config/sirsi_config.rb index 259b49084..4ca7b419e 100644 --- a/lib/traject/config/sirsi_config.rb +++ b/lib/traject/config/sirsi_config.rb @@ -2577,7 +2577,7 @@ def library_has(field) source, item_type, *other_data = extractor.collect_subfields(field, spec) next unless source == 'SDR-PURL' && item_type == 'item' - data = other_data.map { |v| v.split(':', 2) }.to_h + data = other_data.to_h { |v| v.split(':', 2) } next unless data['collection']