Skip to content

Commit

Permalink
remove redundant compact
Browse files Browse the repository at this point in the history
  • Loading branch information
kdp-cloud committed Nov 21, 2023
1 parent ae138a6 commit 05a748a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/isa_exporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def convert_study(study)
isa_study[:protocols] = protocols

isa_study[:processSequence] = convert_process_sequence(study.sample_types.second, study.sops.map(&:id).join("_"), study.id)
assay_streams = study.assays.map { |assay| [assay] if assay&.position&.zero? }.compact
assay_streams = study.assays.map { |assay| [assay] if assay&.position&.zero? }
.compact
.map do |assay_stream|
last_assay = assay_stream.first
Expand Down

0 comments on commit 05a748a

Please sign in to comment.