]> git.cworth.org Git - empires-server/commitdiff
Add some linting fixes
authorCarl Worth <cworth@cworth.org>
Sun, 3 May 2020 22:03:56 +0000 (15:03 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 3 May 2020 22:03:56 +0000 (15:03 -0700)
Specifically some missing semicolons and a missing const.

It's funny that I didn't realize that emacs was doing live linting of
JavaScript all along here, (and highlighting all problems with various
colors and underlining).

server.js

index 64694d83610c109ae71302b5ece8f6013ffc6d4c..f0bc78e7bd9e348c7a76bd13c73120ca7de4f219 100644 (file)
--- a/server.js
+++ b/server.js
@@ -1,9 +1,9 @@
-const express = require("express")
-const cors = require("cors")
+const express = require("express");
+const cors = require("cors");
 const body_parser = require("body-parser");
 
 const app = express();
-app.use(cors())
+app.use(cors());
 
 class Game {
   constructor() {
@@ -62,7 +62,7 @@ class Game {
   }
 }
 
-game = new Game();
+const game = new Game();
 
 app.use(body_parser.urlencoded({ extended: false }));
 app.use(body_parser.json());