Aperture: Avoid smart casting

Change-Id: I55673513544d1283ccf008f2a6d44eed59057d6d
diff --git a/app/src/main/java/org/lineageos/aperture/utils/StorageUtils.kt b/app/src/main/java/org/lineageos/aperture/utils/StorageUtils.kt
index 6c29c38..6da928c 100644
--- a/app/src/main/java/org/lineageos/aperture/utils/StorageUtils.kt
+++ b/app/src/main/java/org/lineageos/aperture/utils/StorageUtils.kt
@@ -37,14 +37,12 @@
             }
         }
 
-        val outputFileOptions = if (outputStream != null) {
-            ImageCapture.OutputFileOptions.Builder(outputStream)
-        } else {
-            ImageCapture.OutputFileOptions.Builder(
-                contentResolver, MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
-                contentValues
-            )
-        }
+        val outputFileOptions = outputStream?.let {
+            ImageCapture.OutputFileOptions.Builder(it)
+        } ?: ImageCapture.OutputFileOptions.Builder(
+            contentResolver, MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
+            contentValues
+        )
         return outputFileOptions
             .setMetadata(metadata)
             .build()