Skip to content

Commit d189a18

Browse files
committed
refactor: fallback to java 11 syntax
1 parent 60f856c commit d189a18

File tree

1 file changed

+1
-1
lines changed
  • codewars-sdk-sample/src/main/java/dev/noid/codewars/sample

1 file changed

+1
-1
lines changed

codewars-sdk-sample/src/main/java/dev/noid/codewars/sample/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ private static String findLastSolvedChallenge(CodewarsClient codewars, String us
2525
if (completed.isEmpty()) {
2626
return "<Nan>";
2727
}
28-
String recentSolvedId = completed.getFirst().getId();
28+
String recentSolvedId = completed.get(0).getId();
2929
return codewars.getCodeChallenge(recentSolvedId).getUrl();
3030
}
3131
}

0 commit comments

Comments
 (0)