fix: resolve detekt/ktlint issues blocking CI

Agent-Logs-Url: https://github.com/devitq/movienight-backend/sessions/42b7a686-07a7-41f5-baf7-737b968e12cf

Co-authored-by: devitq <118541411+devitq@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-08 17:48:57 +00:00
committed by GitHub
co-authored by devitq
parent f30488a3d1
commit e91ebb7bd0
6 changed files with 47 additions and 35 deletions
@@ -104,12 +104,16 @@ class FilmLibraryController(
@PathVariable userId: UUID,
): List<FilmResponse> {
val userLibrary =
try {
runCatching {
getFilmLibraryUseCase.getLibrary(
GetFilmLibraryQuery(userId = userId),
)
} catch (e: EntityNotFoundException) {
null
}.getOrElse { exception ->
if (exception is EntityNotFoundException) {
null
} else {
throw exception
}
}
val allFilms = getAllFilmsUseCase.getAll()