Skip to content

Commit

Permalink
Codacy
Browse files Browse the repository at this point in the history
Signed-off-by: rapterjet2004 <[email protected]>
  • Loading branch information
rapterjet2004 committed Jan 30, 2024
1 parent 75365eb commit a489e49
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4215,8 +4215,7 @@ class ChatActivity :
val caption = if (message.message != "{file}") message.message else ""
if (null != shareUri) {
try {
val inputStream = context.contentResolver.openInputStream(shareUri)
inputStream!!.close()
context.contentResolver.openInputStream(shareUri)?.close()
uploadFile(shareUri.toString(), false, caption!!, roomToken)
} catch (e: java.lang.Exception) {
Log.w(TAG, "File corresponding to the uri does not exist " + shareUri.toString())
Expand Down

0 comments on commit a489e49

Please sign in to comment.