Refactoring: notNull filter is not needed.

This commit is contained in:
Vitor Pamplona 2023-03-21 14:13:32 -04:00
parent fb017c3903
commit aae1a65cba

View File

@ -466,7 +466,7 @@ object LocalCache {
val mentions = event.reportedAuthor().mapNotNull { checkGetOrCreateUser(it.key) }
val repliesTo = event.reportedPost().mapNotNull { checkGetOrCreateNote(it.key) } +
event.taggedAddresses().mapNotNull { getOrCreateAddressableNote(it) }
event.taggedAddresses().map { getOrCreateAddressableNote(it) }
note.loadEvent(event, author, repliesTo)