Skip to content

Commit

Permalink
Issue #47: Add a new column to indicate if a connector is enterprise
Browse files Browse the repository at this point in the history
* Added a stream filter to exclude empty and blank lines.
  • Loading branch information
CherfaElyes committed Jul 8, 2024
1 parent 2338ef1 commit abb8d03
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IO
Files
.readAllLines(file)
.stream()
.map(String::trim)
.filter(line -> !line.isEmpty())
.map(filename -> filename.substring(0, filename.lastIndexOf('.')))
.collect(Collectors.toCollection(ArrayList::new));

Expand Down

0 comments on commit abb8d03

Please sign in to comment.