Skip to content

Commit

Permalink
Merge pull request #295 from Shikkanime/dev
Browse files Browse the repository at this point in the history
Refactor ImageService.kt for improved image handling efficiency
  • Loading branch information
Ziedelth authored Mar 16, 2024
2 parents ae981f1 + 167e05c commit bde0ae9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/kotlin/fr/shikkanime/services/ImageService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@ object ImageService {
}

episodeService.findAllUUIDAndImage().forEach {
episodeService.addImage(it[0] as UUID, it[1] as String)
episodeService.addImage(
it[0] as UUID,
(it[1] as String?)?.ifBlank { null } ?: Constant.DEFAULT_IMAGE_PREVIEW,
)
}
}

Expand Down

0 comments on commit bde0ae9

Please sign in to comment.