Skip to content

Commit

Permalink
code smell: replace this lambda with method reference '
Browse files Browse the repository at this point in the history
spotless
  • Loading branch information
snf2ye committed Aug 24, 2023
1 parent 35af4ea commit f01e488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/main/java/bio/terra/pfb/PfbReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public String showSchema(String fileLocation) {
schema.getField("object").schema().getTypes().stream()
.filter(t -> !t.getName().equals("Metadata"))
.toList();
String show = pfbSchemaShow.stream().map(s -> s.toString()).toList().toString();
String show = pfbSchemaShow.stream().map(Schema::toString).toList().toString();
return convertEnum(show);
} catch (IOException e) {
return "Error: " + e.getMessage();
Expand Down

0 comments on commit f01e488

Please sign in to comment.