No need for not null checks

This commit is contained in:
Vitor Pamplona
2025-08-01 09:57:33 -04:00
parent e715a74bc4
commit 4cd24e5363
2 changed files with 1 additions and 3 deletions

View File

@@ -92,8 +92,6 @@ class User(
fun toNostrUri() = "nostr:${toNProfile()}"
override fun toString(): String = pubkeyHex
fun toBestShortFirstName(): String {
val fullName = toBestDisplayName()

View File

@@ -88,7 +88,7 @@ fun WatchAuthorWithBlank(
inner(noteAuthor)
} else {
val authorState by observeNote(baseNote, accountViewModel)
CrossfadeIfEnabled(targetState = authorState?.note?.author, modifier = modifier, label = "WatchAuthorWithBlank", accountViewModel = accountViewModel) { newAuthor ->
CrossfadeIfEnabled(targetState = authorState.note.author, modifier = modifier, label = "WatchAuthorWithBlank", accountViewModel = accountViewModel) { newAuthor ->
inner(newAuthor)
}
}