Skip to content

Commit bddd1aa

Browse files
committed
Fix _adapter_statistics_as_json bug with one_line=True
Discovered and initial fix suggested by @y9c Closes #803 Closes #804
1 parent 21956dc commit bddd1aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cutadapt/report.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def _adapter_statistics_as_json(
272272
adapter = adapter_statistics.adapter
273273
ends: List[Optional[Dict[str, Any]]] = []
274274
total_trimmed_reads = 0
275-
make_line = OneLine if one_line else list
275+
make_line = OneLine if one_line else lambda value: value
276276
for end_statistics in adapter_statistics.end_statistics():
277277
if end_statistics is None:
278278
ends.append(None)

0 commit comments

Comments
 (0)