Refactor code in lib/ folder

This commit is contained in:
Tyler Long
2017-04-16 17:52:09 +08:00
parent 701e638907
commit b9b991c5fe
3 changed files with 0 additions and 65 deletions

View File

@@ -9,7 +9,6 @@ var path = require('path')
var PHANTOM_VERSION = '^2.1.0'
var info = chalk.blue.bold
// var note = chalk.green.bold
module.exports = (function () {
return new Cli()
@@ -63,7 +62,6 @@ function Cli (options) {
Cli.prototype.parse = function (argv, next) {
this.errors = [] // clear errors
var options = parseArgs(argv, this.options)
// var phantom
if (options.version) {
var pkg = require('../package.json')
@@ -148,7 +146,6 @@ Cli.prototype.parse = function (argv, next) {
function createCheckPhantom (_phantomPath) {
var phantomPath = _phantomPath
// var phantomVersion
return function checkPhantom (_next) {
var next = _next || function () { }