Skip to content

Commit 1697d5b

Browse files
committed
Formatting (semicolon / whitespace)
1 parent 8665cce commit 1697d5b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

server.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ class EleventyDevServer {
4242
}
4343

4444
constructor(name, dir, options = {}) {
45-
debug("Creating new Dev Server instance.")
45+
debug("Creating new Dev Server instance.");
4646
this.name = name;
4747
this.normalizeOptions(options);
48-
48+
4949
this.fileCache = {};
5050
// Directory to serve
5151
if(!dir) {
@@ -85,10 +85,10 @@ class EleventyDevServer {
8585
// TODO if using Eleventy and `watch` option includes output folder (_site) this will trigger two update events!
8686
this._watcher = chokidar.watch(this.options.watch, {
8787
// TODO allow chokidar configuration extensions (or re-use the ones in Eleventy)
88-
88+
8989
ignored: ["**/node_modules/**", ".git"],
9090
ignoreInitial: true,
91-
91+
9292
// same values as Eleventy
9393
awaitWriteFinish: {
9494
stabilityThreshold: 150,
@@ -100,7 +100,7 @@ class EleventyDevServer {
100100
this.logger.log( `File changed: ${path} (skips build)` );
101101
this.reloadFiles([path]);
102102
});
103-
103+
104104
this._watcher.on("add", (path) => {
105105
this.logger.log( `File added: ${path} (skips build)` );
106106
this.reloadFiles([path]);
@@ -456,19 +456,19 @@ class EleventyDevServer {
456456
if(!res._shouldForceEnd) {
457457
let match = this.mapUrlToFilePath(req.url);
458458
debug( req.url, match );
459-
459+
460460
if (match) {
461461
if (match.statusCode === 200 && match.filepath) {
462462
return this.renderFile(match.filepath, res);
463463
}
464-
464+
465465
// Redirects, usually for trailing slash to .html stuff
466466
if (match.url) {
467467
res.statusCode = match.statusCode;
468468
res.setHeader("Location", match.url);
469469
return res.end();
470470
}
471-
471+
472472
let raw404Path = this.getOutputDirFilePath("404.html");
473473
if(match.statusCode === 404 && this.isOutputFilePathExists(raw404Path)) {
474474
res.statusCode = match.statusCode;

0 commit comments

Comments
 (0)