Skip to content

Commit

Permalink
Remove unnecessary check (#600)
Browse files Browse the repository at this point in the history
According to flutter's app:compileDebugKotlin job, in the context of
CreatePostActivity.kt, 'uri != null' is always 'true'.

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
  • Loading branch information
7heo and dessalines authored Jun 13, 2023
1 parent 0d7730b commit f5e435d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ fun CreatePostActivity(
suggestedTitle = createPostViewModel.suggestedTitle,
image = _image,
onPickedImage = { uri ->
if (uri != null && uri != Uri.EMPTY) {
if (uri != Uri.EMPTY) {
val imageIs = imageInputStreamFromUri(ctx, uri)
scope.launch {
account?.also { acct ->
Expand Down

0 comments on commit f5e435d

Please sign in to comment.