From dabfe68009eb57f3796490988ffc9021171f5d9b Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sun, 21 May 2017 19:49:49 +0430 Subject: [PATCH] ESLint --- lib/build.js | 2 +- lib/render.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/build.js b/lib/build.js index a5e5299e6b..adc759055c 100644 --- a/lib/build.js +++ b/lib/build.js @@ -221,7 +221,7 @@ async function generateRoutesAndFiles () { const files = await glob('pages/**/*.vue', {cwd: this.srcDir}) templateVars.router.routes = createRoutes(files, this.srcDir) } else { - templateVars.router.routes = this.createRoutes.call(this, this.srcDir) + templateVars.router.routes = this.createRoutes(this.srcDir) } if (typeof this.options.router.extendRoutes === 'function') { // let the user extend the routes diff --git a/lib/render.js b/lib/render.js index d389c92ec9..c1a3e7adc6 100644 --- a/lib/render.js +++ b/lib/render.js @@ -79,7 +79,7 @@ export async function render (req, res) { const pushAssets = [] let m while (m = regex.exec(resourceHints)) { // eslint-disable-line no-cond-assign - const [_, rel, href, as] = m + const [_, rel, href, as] = m // eslint-disable-line no-unused-vars if (rel === 'preload') { pushAssets.push(`<${href}>; rel=${rel}; as=${as}`) }