From ef6f0da1465d07776362b2e13d2a9948013b5050 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 11 May 2017 18:29:36 +0430 Subject: [PATCH] ESLint --- lib/generate.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/generate.js b/lib/generate.js index 8bad8bc8ef..3a930de3bc 100644 --- a/lib/generate.js +++ b/lib/generate.js @@ -72,7 +72,7 @@ export default async function () { // Resolve config.generate.routes promises before generating the routes try { var generateRoutes = await promisifyRoute(this.options.generate.routes || []) - } catch(e) { + } catch (e) { console.error('Could not resolve routes') // eslint-disable-line no-console console.error(e) // eslint-disable-line no-console process.exit(1) @@ -87,8 +87,7 @@ export default async function () { } }) let n = 0 - for(let route of this.routes) { - + for (let route of this.routes) { await waitFor(n++ * self.options.generate.interval) try { var { html, error } = await self.renderRoute(route, { _generate: true }) @@ -117,7 +116,6 @@ export default async function () { // https://help.github.com/articles/files-that-start-with-an-underscore-are-missing/ const nojekyllPath = resolve(distPath, '.nojekyll') writeFile(nojekyllPath, '') - const duration = Math.round((Date.now() - s) / 100) / 10 debug(`HTML Files generated in ${duration}s`)