From: David ‘Bombe’ Roden Date: Fri, 22 Feb 2019 22:50:21 +0000 (+0100) Subject: Replace forEach() on range with repeat() X-Git-Tag: v79^2~103 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=686f8a9a790416270a5d285945a48e22d3adfe61;p=Sone.git Replace forEach() on range with repeat() --- diff --git a/src/test/kotlin/net/pterodactylus/sone/template/ReplyGroupFilterTest.kt b/src/test/kotlin/net/pterodactylus/sone/template/ReplyGroupFilterTest.kt index 4614454..f1ee884 100644 --- a/src/test/kotlin/net/pterodactylus/sone/template/ReplyGroupFilterTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/template/ReplyGroupFilterTest.kt @@ -26,7 +26,7 @@ class ReplyGroupFilterTest { @Before fun setupReplies() { - (0..4).forEach { + repeat(5) { sones += mock() } (0..7).forEach {