Skip to content

Commit 4b8daa8

Browse files
author
Jay Ng
committed
refactor(renderer): applied java format template on old code
1 parent ecbf71a commit 4b8daa8

File tree

1 file changed

+5
-4
lines changed
  • runner/src/main/java/com/codingame/gameengine/runner

1 file changed

+5
-4
lines changed

runner/src/main/java/com/codingame/gameengine/runner/Renderer.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ private static void generateAssetsFile(Path tmpdir, String assetsPath) {
258258
if (!fonts.contains(new JsonPrimitive(newName))) {
259259
fonts.add(newName);
260260
}
261-
261+
262262
Files.write(
263263
tmpdir.resolve("hashed_assets").resolve(newName),
264264
newContent.getBytes(),
@@ -529,8 +529,8 @@ private void checkQuestionsTypeValidity(GameConfig gameConfig, QuestionConfig qu
529529
throw new MissingConfigException("An optimization game must have a sorting_order property in config.ini.");
530530
} else if (!"ASC".equalsIgnoreCase(questionConfig.getSortingOrder())
531531
&& !"DESC".equalsIgnoreCase(questionConfig.getSortingOrder())) {
532-
throw new MissingConfigException("The sorting order for an optimization game must be ASC (ascendant) or DESC (descendant)");
533-
}
532+
throw new MissingConfigException("The sorting order for an optimization game must be ASC (ascendant) or DESC (descendant)");
533+
}
534534
}
535535

536536
switch (gameConfig.getGameType()) {
@@ -682,7 +682,8 @@ public void handleRequest(HttpServerExchange exchange) throws Exception {
682682
}
683683

684684
exchange.setStatusCode(StatusCodes.OK);
685-
} if (exchange.getRelativePath().equals("/stub")) {
685+
}
686+
if (exchange.getRelativePath().equals("/stub")) {
686687
File stubFile = sourceFolderPath.resolve("config/stub.txt").toFile();
687688
if (exchange.getRequestMethod().equalToString("GET")) {
688689
String stub = FileUtils.readFileToString(stubFile, StandardCharsets.UTF_8);

0 commit comments

Comments
 (0)