Skip to content

Commit

Permalink
less .map
Browse files Browse the repository at this point in the history
Signed-off-by: J10a1n15 <[email protected]>
  • Loading branch information
j10a1n15 committed Jun 11, 2024
1 parent f463f3b commit 92383b5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,7 @@ private fun getNorthStarsShowWhen() = inAnyIsland(IslandType.WINTER)

private fun getChunkedStatsDisplayPair(): List<ScoreboardElementType> =
getChunkedStats().chunked(chunkedConfig.maxStatsPerLine)
.map { it.joinToString(separator = " §f| ") }
.map { it to HorizontalAlignment.LEFT }
.map { it.joinToString(" §f| ") to HorizontalAlignment.LEFT }

private fun getEmptyLineDisplayPair() = listOf("<empty>" to HorizontalAlignment.LEFT)

Expand Down

0 comments on commit 92383b5

Please sign in to comment.