Skip to content

Commit 9e381da

Browse files
committed
Appease rubocop
1 parent 04ede6f commit 9e381da

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

app/services/marc_record_service.rb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -218,21 +218,21 @@ def each_with_metadata_for_marc21
218218
each_raw_record_with_metadata_for_marc21
219219
.slice_when { |i, j| !same_record?(i[:marc], j[:marc]) }
220220
.with_index do |records_to_combine, index|
221-
if records_to_combine.length == 1
222-
yield(records_to_combine.first[:marc], records_to_combine.first.except(:marc))
223-
else
224-
bytes = records_to_combine.pluck(:marc_bytes).join
221+
if records_to_combine.length == 1
222+
yield(records_to_combine.first[:marc], records_to_combine.first.except(:marc))
223+
else
224+
bytes = records_to_combine.pluck(:marc_bytes).join
225225

226-
record = merge_records(*records_to_combine.pluck(:marc))
226+
record = merge_records(*records_to_combine.pluck(:marc))
227227

228-
yield record, {
229-
**records_to_combine.first.except(:marc, :marc_bytes),
230-
index: index,
231-
bytecount: bytes.length,
232-
length: bytes.length,
233-
checksum: Digest::MD5.hexdigest(bytes)
234-
}
235-
end
228+
yield record, {
229+
**records_to_combine.first.except(:marc, :marc_bytes),
230+
index: index,
231+
bytecount: bytes.length,
232+
length: bytes.length,
233+
checksum: Digest::MD5.hexdigest(bytes)
234+
}
235+
end
236236
end
237237
end
238238

0 commit comments

Comments
 (0)