Fixing linting

This commit is contained in:
David Négrier
2022-02-15 09:15:41 +01:00
parent 9073024b1d
commit 4bcdbcb1bd
2 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -47,7 +47,7 @@ export class MapController extends BaseController {
if (!match) {
res.writeStatus("404 Not Found");
this.addCorsHeaders(res);
res.writeHeader('Content-Type', 'application/json');
res.writeHeader("Content-Type", "application/json");
res.end(JSON.stringify({}));
return;
}
@@ -56,7 +56,7 @@ export class MapController extends BaseController {
res.writeStatus("200 OK");
this.addCorsHeaders(res);
res.writeHeader('Content-Type', 'application/json');
res.writeHeader("Content-Type", "application/json");
res.end(
JSON.stringify({
mapUrl,
@@ -108,7 +108,7 @@ export class MapController extends BaseController {
res.writeStatus("200 OK");
this.addCorsHeaders(res);
res.writeHeader('Content-Type', 'application/json');
res.writeHeader("Content-Type", "application/json");
res.end(JSON.stringify(mapDetails));
} catch (e) {
this.errorToResponse(e, res);