Standardize exception naming in VeranstaltungController: replace unused exception variable names with _ for cleaner and more concise code.

This commit is contained in:
Stefan Mogeritsch 2026-04-08 23:01:13 +02:00
parent f2dff2a4d8
commit ee520073f0

View File

@ -38,7 +38,7 @@ class VeranstaltungController(
val offset = call.request.queryParameters["offset"]?.toInt() ?: 0
val organizerId = call.request.queryParameters["organizerId"]?.let {
try { Uuid.parse(it) } catch (e: Exception) {
try { Uuid.parse(it) } catch (_: Exception) {
return@get call.respond(
HttpStatusCode.BadRequest,
ApiResponse.error<Any>("INVALID_ORGANIZER_ID", "Invalid organizerId format")
@ -187,7 +187,7 @@ class VeranstaltungController(
ApiResponse.error<Any>("MISSING_ID", "Event ID is required")
)
val eventId = try { Uuid.parse(eventIdString) } catch (e: Exception) {
val eventId = try { Uuid.parse(eventIdString) } catch (_: Exception) {
return@delete call.respond(
HttpStatusCode.BadRequest,
ApiResponse.error<Any>("INVALID_ID", "Invalid event ID format")