Skip to content

Commit

Permalink
remove dead code in bin/_mocha
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Hiller <[email protected]>
  • 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
Original file line number Diff line number Diff line change
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.