Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove dead code in bin/_mocha
Signed-off-by: Christopher Hiller <boneskull@boneskull.com>
  • Loading branch information
boneskull committed May 18, 2018
1 parent 8712b95 commit 889e681
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions bin/_mocha
Expand Up @@ -367,19 +367,6 @@ if (program.reporterOptions !== undefined) {

mocha.reporter(program.reporter, reporterOptions);

// load reporter

let Reporter = null;
try {
Reporter = require(`../lib/reporters/${program.reporter}`);
} catch (err) {
try {
Reporter = require(program.reporter);
} catch (err2) {
throw new Error(`reporter "${program.reporter}" does not exist`);
}
}

// --no-colors

if (!program.colors) {
Expand Down

0 comments on commit 889e681

Please sign in to comment.