File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments