From 1aa795a5b8ac3eafb1f15f82e66b36f6ed1f36b7 Mon Sep 17 00:00:00 2001 From: 7heo <7heo@users.noreply.github.com> Date: Tue, 13 Jun 2023 15:55:38 +0200 Subject: [PATCH] Remove unnecessary check According to flutter's app:compileDebugKotlin job, in the context of CreatePostActivity.kt, 'uri != null' is always 'true'. --- .../com/jerboa/ui/components/post/create/CreatePostActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/jerboa/ui/components/post/create/CreatePostActivity.kt b/app/src/main/java/com/jerboa/ui/components/post/create/CreatePostActivity.kt index 10e6d182f..1e8d5414b 100644 --- a/app/src/main/java/com/jerboa/ui/components/post/create/CreatePostActivity.kt +++ b/app/src/main/java/com/jerboa/ui/components/post/create/CreatePostActivity.kt @@ -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 ->