Skip to content

Commit 2c21427

Browse files
committed
change extra get()
1 parent 317402a commit 2c21427

File tree

1 file changed

+1
-2
lines changed
  • application/src/main/java/org/togetherjava/tjbot/features/jshell/renderer

1 file changed

+1
-2
lines changed

application/src/main/java/org/togetherjava/tjbot/features/jshell/renderer/RendererUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ static GeneralStatus getGeneralStatus(JShellResult result) {
5959
return GeneralStatus.PARTIAL_SUCCESS; // At least one snippet is a success
6060
}
6161

62-
return getGeneralStatus(
63-
result.snippetsResults().get(result.snippetsResults().size() - 1).status());
62+
return getGeneralStatus(result.snippetsResults().getLast().status());
6463
}
6564

6665
static Color getStatusColor(JShellResult result) {

0 commit comments

Comments
 (0)