Skip to content

Commit 5636e43

Browse files
committed
Fix benchmarks compilation after migration to Kotlin 1.5.30
1 parent 1786eb0 commit 5636e43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmarks/src/jmh/kotlin/benchmarks/flow/scrabble/SequencePlaysScrabble.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ open class SequencePlaysScrabble : ShakespearePlaysScrabble() {
3030
val bonusForDoubleLetter: (String) -> Int = { word: String ->
3131
toBeMaxed(word)
3232
.map { letterScores[it - 'a'.toInt()] }
33-
.max()!!
33+
.maxOrNull()!!
3434
}
3535

3636
val score3: (String) -> Int = { word: String ->

0 commit comments

Comments
 (0)