Introduce ESLint and Prettier

This commit is contained in:
Zaid Abdulla committed 2018-08-24 05:31:22 -07:00
1 parent 9c943d0bbf
commit e494bdca8a
26 files changed
+1585 -1594

No files matched your search

+2 -4
View File
@@ -28,7 +28,7 @@ function listener(request, response) {
if (request.method === "GET") {
const filename = querystring.unescape(urlParts.pathname.substring(1));
const gs = new mongodb.GridStore(db.mongoDb, filename, "r", {});
gs.open((err, gs) => {
gs.open(err => {
if (err) {
response.writeHead(404);
response.end();
@@ -42,9 +42,7 @@ function listener(request, response) {
stream.pipe(response);
});
} else {
response.writeHead(405, {
"Allow": "GET"
});
response.writeHead(405, { Allow: "GET" });
response.end("405 Method Not Allowed");
}
}