8000 collections.4 : Inline locals · java-to-kotlin/code@bb41254 · GitHub
[go: up one dir, main page]

Skip to content

Commit bb41254

Browse files
Duncan McGregordmcg
authored andcommitted
collections.4 : Inline locals
1 parent ac78f80 commit bb41254

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/travelator/Suffering.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
public class Suffering {
1212

1313
public static int sufferScoreFor(List<Journey> route) {
14-
Location start = getDepartsFrom(route);
15-
List<Journey> longestJourneys = longestJourneysIn(route, 3);
16-
return sufferScore(longestJourneys, start);
14+
return sufferScore(
15+
longestJourneysIn(route, 3),
16+
getDepartsFrom(route));
1717
}
1818

1919
static List<Journey> longestJourneysIn(

0 commit comments

Comments
 (0)
0