Commit 5d0fb955 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Removes unecessary non-null assertion.

parent d8946189
...@@ -34,8 +34,8 @@ class FileUiModel( ...@@ -34,8 +34,8 @@ class FileUiModel(
} }
private fun getUserDisplayName(): String { private fun getUserDisplayName(): String {
val username = "@${genericAttachment.user?.username}" val username = "@${genericAttachment.user.username}"
val realName = genericAttachment.user?.name val realName = genericAttachment.user.name
val uploaderName = if (settings.useRealName()) realName else username val uploaderName = if (settings.useRealName()) realName else username
return uploaderName ?: username return uploaderName ?: username
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment