any more elegant way of handling this? ``` fun u...
# announcements
t
any more elegant way of handling this?
Copy code
fun uploadedFile(fileName: String): UploadedFile? {
    val uploadedFiles = uploadedFiles(fileName)
    return if (uploadedFiles.isNotEmpty()) uploadedFiles[0] else null;
}
a
firstOrNull
t
perfect, thanks