Skip to content

Commit

Permalink
refact: use method reference instead of lambda expression
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed May 14, 2024
1 parent 18ef8e3 commit bcf9e45
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ protected void createColumns() {
final var contentTypes = grammarManager.getContentTypesForScope(def.getScope());
yield contentTypes == null
? null
: contentTypes.stream().map(ct -> ct.getName())
: contentTypes.stream().map(IContentType::getName)
.distinct()
.sorted()
.collect(Collectors.joining(", "));
Expand Down

0 comments on commit bcf9e45

Please sign in to comment.