Merged the two conditions into a single condition. (#5055)

This commit is contained in:
TurquoiseHexagonSun 2022-09-21 01:43:12 -04:00 committed by GitHub
parent db30f07f64
commit eade6ca3a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,9 +89,7 @@ class ImageFileLoader(val context: Context) : CoroutineScope{
null null
} }
if (file != null && file.exists() && name != null && path != null && bucketName != null) {
if (file != null && file.exists()) {
if (name != null && path != null && bucketName != null) {
val uri = ContentUris.withAppendedId(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, id) val uri = ContentUris.withAppendedId(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, id)
val calendar = Calendar.getInstance() val calendar = Calendar.getInstance()
@ -111,7 +109,6 @@ class ImageFileLoader(val context: Context) : CoroutineScope{
) )
images.add(image) images.add(image)
} }
}
} while (cursor.moveToNext()) } while (cursor.moveToNext())
} }