🎨 Use Kotlin arrow type instead of Predicate
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / notify / ReplyVisibilityFilter.kt
index 34018f6..785386a 100644 (file)
@@ -11,7 +11,7 @@ interface ReplyVisibilityFilter {
        fun isReplyVisible(sone: Sone?, reply: PostReply): Boolean
 
        @JvmDefault
-       fun isVisible(currentSone: Sone?): Predicate<PostReply> =
-                       Predicate { reply: PostReply -> isReplyVisible(currentSone, reply) }
+       fun isVisible(currentSone: Sone?) =
+                       { reply: PostReply -> isReplyVisible(currentSone, reply) }
 
 }