Skip to content

Commit

Permalink
Remove 'final var' from lambda arguments to work around a bug in pala…
Browse files Browse the repository at this point in the history
…ntir-java-format

The issue stems from google-java-format: google/google-java-format#959

This commit should be reverted once this bug is fixed in palantir-java-format!
  • Loading branch information
bwRavencl committed Aug 22, 2023
1 parent 99294b3 commit d397d92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public Driver getIfAvailable(final Input input, final List<ControllerInfo> prese
if (Main.isLinux && input.isHapticFeedbackEnabled()) {
final var inputDir = new File("/dev/input/");
final var allEventFiles = inputDir
.listFiles((final var dir, final var name) -> name.matches("event(\\d+)"));
.listFiles((dir, name) -> name.matches("event(\\d+)"));

if (allEventFiles == null)
return null;
Expand Down

0 comments on commit d397d92

Please sign in to comment.