Skip to content

Commit

Permalink
rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
peetucket committed Oct 21, 2024
1 parent 92b8259 commit 06ee8a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/cocina/models/mapping/from_mods/note.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def abstracts
note_present?(node)
end
altrepgroup_abstract_nodes, other_abstract_nodes = AltRepGroup.split(nodes: all_abstract_nodes)
other_abstract_nodes.map { |node| common_note_for(node).merge(abstract_type(node)) } + \
other_abstract_nodes.map { |node| common_note_for(node).merge(abstract_type(node)) } +
altrepgroup_abstract_nodes.map { |parallel_nodes| parallel_abstract_for(parallel_nodes) }
end

Expand Down Expand Up @@ -92,7 +92,7 @@ def notes
note_present?(node) && node[:type] != 'contact'
end
altrepgroup_note_nodes, other_note_nodes = AltRepGroup.split(nodes: all_note_nodes)
other_note_nodes.map { |node| common_note_for(node) } + \
other_note_nodes.map { |node| common_note_for(node) } +
altrepgroup_note_nodes.map { |parallel_nodes| parallel_note_for(parallel_nodes) }
end

Expand Down Expand Up @@ -123,7 +123,7 @@ def table_of_contents
note_present?(node)
end
altrepgroup_toc_nodes, other_toc_nodes = AltRepGroup.split(nodes: all_toc_nodes)
other_toc_nodes.map { |node| toc_for(node).merge({ type: 'table of contents' }) } + \
other_toc_nodes.map { |node| toc_for(node).merge({ type: 'table of contents' }) } +
altrepgroup_toc_nodes.map { |parallel_nodes| parallel_toc_for(parallel_nodes) }
end

Expand Down

0 comments on commit 06ee8a0

Please sign in to comment.