Skip to content

Commit 03a2212

Browse files
committed
simplify absent compute
1 parent fa8380b commit 03a2212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/gregtech/common/mui/widget/HighlightedTextField.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void runHighlighter(String text) {
8989
if (this.highlightRule == null) {
9090
return;
9191
}
92-
this.cacheMap.computeIfAbsent(text, string -> this.highlightRule.apply(string));
92+
this.cacheMap.computeIfAbsent(text, this.highlightRule);
9393
}
9494
}
9595
}

0 commit comments

Comments
 (0)