feat: NCS-37 Quarkus integration #35
@@ -125,8 +125,10 @@ class GameResource:
|
||||
private def ok(body: AnyRef): Response = Response.ok(body).build()
|
||||
private def created(body: AnyRef): Response = Response.status(Response.Status.CREATED).entity(body).build()
|
||||
|
||||
// scalafix:off DisableSyntax.throw
|
||||
private def assertGameNotOver(entry: GameEntry): Unit =
|
||||
if entry.engine.context.result.isDefined then throw BadRequestException("GAME_OVER", "Game is already over")
|
||||
// scalafix:on DisableSyntax.throw
|
||||
|
||||
// ── endpoints ────────────────────────────────────────────────────────────
|
||||
// scalafix:off DisableSyntax.throw
|
||||
|
||||
Reference in New Issue
Block a user