refactor: clean up whitespace in IoResource and NativeReflectionConfig
Build & Test (NowChessSystems) TeamCity build failed
Build & Test (NowChessSystems) TeamCity build failed
This commit is contained in:
@@ -21,7 +21,6 @@ import io.quarkus.runtime.annotations.RegisterForReflection
|
|||||||
classOf[LegalMovesResponseDto],
|
classOf[LegalMovesResponseDto],
|
||||||
classOf[OkResponseDto],
|
classOf[OkResponseDto],
|
||||||
classOf[PlayerInfoDto],
|
classOf[PlayerInfoDto],
|
||||||
|
|
||||||
classOf[GameContext],
|
classOf[GameContext],
|
||||||
classOf[Color],
|
classOf[Color],
|
||||||
classOf[Piece],
|
classOf[Piece],
|
||||||
@@ -35,7 +34,6 @@ import io.quarkus.runtime.annotations.RegisterForReflection
|
|||||||
classOf[PromotionPiece],
|
classOf[PromotionPiece],
|
||||||
classOf[GameResult],
|
classOf[GameResult],
|
||||||
classOf[DrawReason],
|
classOf[DrawReason],
|
||||||
|
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
class NativeReflectionConfig
|
class NativeReflectionConfig
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ class IoResource:
|
|||||||
def importFen(body: ImportFenRequest): Uni[Response] =
|
def importFen(body: ImportFenRequest): Uni[Response] =
|
||||||
Uni.createFrom().item {
|
Uni.createFrom().item {
|
||||||
FenParser.parseFen(body.fen) match
|
FenParser.parseFen(body.fen) match
|
||||||
case Left(err) =>
|
case Left(err) =>
|
||||||
Response.status(400).entity(IoErrorDto("INVALID_FEN", err)).build()
|
Response.status(400).entity(IoErrorDto("INVALID_FEN", err)).build()
|
||||||
case Right(ctx) =>
|
case Right(ctx) =>
|
||||||
Response.ok(ctx).build()
|
Response.ok(ctx).build()
|
||||||
@@ -52,7 +52,7 @@ class IoResource:
|
|||||||
def importPgn(body: ImportPgnRequest): Uni[Response] =
|
def importPgn(body: ImportPgnRequest): Uni[Response] =
|
||||||
Uni.createFrom().item {
|
Uni.createFrom().item {
|
||||||
PgnParser.importGameContext(body.pgn) match
|
PgnParser.importGameContext(body.pgn) match
|
||||||
case Left(err) =>
|
case Left(err) =>
|
||||||
Response.status(400).entity(IoErrorDto("INVALID_PGN", err)).build()
|
Response.status(400).entity(IoErrorDto("INVALID_PGN", err)).build()
|
||||||
case Right(ctx) =>
|
case Right(ctx) =>
|
||||||
Response.ok(ctx).build()
|
Response.ok(ctx).build()
|
||||||
|
|||||||
Reference in New Issue
Block a user