From 06fad401bf4e5f7e22f65e355ac6c99a8235b3cb Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Tue, 10 Jan 2017 11:59:56 +0100 Subject: [PATCH] Removed unused code --- bin/now | 25 ------------------------- package.json | 2 ++ 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/bin/now b/bin/now index 189269b..1afe643 100755 --- a/bin/now +++ b/bin/now @@ -6,7 +6,6 @@ const {resolve} = require('path') // Packages -const minimist = require('minimist') const nodeVersion = require('node-version') const isAsyncSupported = require('is-async-supported') @@ -15,7 +14,6 @@ if (!isAsyncSupported()) { } // Ours -const checkUpdate = require('../lib/check-update') const {error} = require('../lib/error') if (nodeVersion.major < 6) { @@ -23,29 +21,6 @@ if (nodeVersion.major < 6) { process.exit(1) } -const argv = minimist(process.argv.slice(2)) - -// options -const debug = argv.debug || argv.d - -// Disable updates by default -let update = false - -// auto-update checking -// only for the npm version, not the enclosed one -if (!process.pkg) { - update = checkUpdate({debug}) -} - -const exit = code => { - if (update) { - update.then(() => process.exit(code)) - } - // don't wait for updates more than a second - // when the process really wants to exit - setTimeout(() => process.exit(code), 1000) -} - const defaultCommand = 'deploy' const commands = new Set([ diff --git a/package.json b/package.json index 11806da..6e2b367 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,8 @@ ], "rules": { "import/no-unresolved": 0, + "import/no-unassigned-import": 0, + "import/no-dynamic-require": 0, "max-depth": 0, "no-use-before-define": 0, "complexity": 0,