From 431edfb1bb7bc77d3be23ccc62b3e796b2910cb0 Mon Sep 17 00:00:00 2001 From: wow-such-code Date: Wed, 24 Jul 2024 16:15:35 +0200 Subject: [PATCH] better code --- src/main/java/life/qbic/io/PetabParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/life/qbic/io/PetabParser.java b/src/main/java/life/qbic/io/PetabParser.java index dd2cbf4..dd99656 100644 --- a/src/main/java/life/qbic/io/PetabParser.java +++ b/src/main/java/life/qbic/io/PetabParser.java @@ -41,7 +41,7 @@ public PetabMetadata parse(String dataPath) { } // if we are in the id block, we collect one dataset code per line if (inIDBlock) { - parseDatasetCode(line).ifPresent(code -> sourcePetabReferences.add(code)); + parseDatasetCode(line).ifPresent(sourcePetabReferences::add); } if (line.contains("openBISSourceIds:")) { inIDBlock = true;