Skip to content

Commit

Permalink
fix(nodeshift): No longer check and emit a warning for non-standard N…
Browse files Browse the repository at this point in the history
…ode versions.

fixes #194
  • Loading branch information
lholmquist committed Mar 2, 2018
1 parent 25469d2 commit fa0c44e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions bin/nodeshift
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ process.title = 'nodeshift'; // Thanks Ember-cli :)
const fs = require('fs');
const yargs = require('yargs');

const nodeVersionChoices = ['latest', '9.x', '8.x', '7.x', '6.x'];

/* eslint no-unused-expressions: "warn" */
yargs
.usage('[--options]')
Expand Down Expand Up @@ -88,10 +86,6 @@ function commandHandler (argv) {
const metadataOut = (options.metadata.out === 'ignore') ? undefined : options.metadata.out;
const log = require('../lib/common-log')();

// If nodeVersion choice is not in the list, emit a warning
if (!nodeVersionChoices.includes(options.nodeVersion)) {
log.warning(`Unrecognized Node.js version specified: ${options.nodeVersion}. Known versions are ${nodeVersionChoices.join(', ')}.`);
}
require('./cli')(options).then((response) => {
if (metadataOut && (metadataOut.trim() !== '')) {
if (metadataOut === 'stdout') {
Expand Down

0 comments on commit fa0c44e

Please sign in to comment.