Skip to content

Commit

Permalink
Revert "use default ports if empty/invalid (fixes #110)"
Browse files Browse the repository at this point in the history
This reverts commit f1de9f1.
  • Loading branch information
mattdesl committed Dec 4, 2015
1 parent c8c3055 commit 2d9ddb4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@ function budoCLI (args, opts) {
argv.livePort = parseInt(argv.livePort, 10)
}

// port and livePort must be valid numbers
if (isNaN(argv.port)) {
delete argv.port
}
if (isNaN(argv.livePort)) {
delete argv.livePort
}

// opts.live can be a glob or a boolean
if (typeof argv.live === 'string' && /(true|false)/.test(argv.live)) {
argv.live = argv.live === 'true'
Expand Down

0 comments on commit 2d9ddb4

Please sign in to comment.