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;