Return nullable Post instead of Optional
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / database / PostProvider.kt
index fba9daf..37cb2a1 100644 (file)
@@ -29,7 +29,7 @@ import com.google.inject.ImplementedBy
 @ImplementedBy(MemoryDatabase::class)
 interface PostProvider {
 
-       fun getPost(postId: String): Optional<Post>
+       fun getPost(postId: String): Post?
        fun getPosts(soneId: String): Collection<Post>
        fun getDirectedPosts(recipientId: String): Collection<Post>