Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,10 @@ private static int commonPrefixLength(String s1, String s2)

private static boolean hasRequiredHeaders(Path diannReportTsv)
{
try
try (Stream<String> lines = Files.lines(diannReportTsv))
{
// Read the first line of the file
String firstLine = Files.lines(diannReportTsv).findFirst().orElse("");
String firstLine = lines.findFirst().orElse("");
// Check if the first line has the expected header columns names
return List.of(firstLine.trim().split("\t")).containsAll(LibSourceFile.DIANN_REPORT_EXPECTED_HEADERS);
}
Expand Down