mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-05 00:26:40 +02:00
Refactor code in lib/ folder
This commit is contained in:
@@ -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 () { }
|
||||
|
Reference in New Issue
Block a user