From 726a04320f951f999a51b74d02bde07a06f7147e Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sun, 3 May 2020 15:03:56 -0700 Subject: [PATCH] Add some linting fixes 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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server.js b/server.js index 64694d8..f0bc78e 100644 --- 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()); -- 2.43.0