1
0
mirror of https://github.com/ultrasonic/ultrasonic synced 2025-02-16 19:50:35 +01:00

Unnecesary null-check

This commit is contained in:
tzugen 2021-11-01 14:12:35 +01:00
parent 7ed91db250
commit e6624ada9a
No known key found for this signature in database
GPG Key ID: 61E9C34BC10EC930

View File

@ -31,7 +31,7 @@ class BitmapUtils {
if (entry == null) return null
val albumArtFile = FileUtil.getAlbumArtFile(entry)
val bitmap: Bitmap? = null
if (albumArtFile != null && albumArtFile.exists()) {
if (albumArtFile.exists()) {
return getBitmapFromDisk(albumArtFile.path, size, bitmap)
}
return null