Skip to content

Commit 83effb5

Browse files
committed
lint
1 parent 9646ed0 commit 83effb5

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

examples/arcade-server/index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ async function main() {
4949
res.setHeader("Cache-Control", "no-cache");
5050
res.send(html);
5151
} catch (error) {
52-
res.status(500).send(
53-
`Failed to load game: ${error instanceof Error ? error.message : String(error)}`,
54-
);
52+
res
53+
.status(500)
54+
.send(
55+
`Failed to load game: ${error instanceof Error ? error.message : String(error)}`,
56+
);
5557
}
5658
});
5759

examples/arcade-server/server.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ const gameHtmlMap = new Map<string, Promise<string>>();
2626
* Returns the game HTML for the given ID, awaiting processing if in-flight.
2727
* Used by the /game-html/:gameId HTTP endpoint.
2828
*/
29-
export async function getGameHtmlForId(
30-
gameId: string,
31-
): Promise<string | null> {
29+
export async function getGameHtmlForId(gameId: string): Promise<string | null> {
3230
const promise = gameHtmlMap.get(gameId);
3331
return promise ? promise : null;
3432
}

0 commit comments

Comments
 (0)