From 0b2b39222c132c4e46090bf603877390ed2c15c6 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Wed, 25 Jan 2017 12:12:58 -0800 Subject: [PATCH] lint --- lib/get-files.js | 2 +- test/index.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/get-files.js b/lib/get-files.js index b61da19..f797b6e 100644 --- a/lib/get-files.js +++ b/lib/get-files.js @@ -223,7 +223,7 @@ const glob = async function (pattern, options) { * @return {Array} of {String}s of full paths */ -async function explode (paths, {accepts, debug}) { +async function explode(paths, {accepts, debug}) { const list = async file => { let path = file let s diff --git a/test/index.js b/test/index.js index df80ad6..5bfcd73 100644 --- a/test/index.js +++ b/test/index.js @@ -189,12 +189,12 @@ test('support `now.json` files with Dockerfile', async t => { }) test('throws when both `now.json` and `package.json:now` exist', async t => { - let err + let e try { await readMetadata(fixture('now-json-throws'), {quiet: true, strict: false}) - } catch (e) { - err = e + } catch (err) { + e = err } - t.is(err.name, 'Error') - t.pass(/refusing to proceed/i.test(err.message)) + t.is(e.name, 'Error') + t.pass(/refusing to proceed/i.test(e.message)) })