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 Apr 30, 2018
1 parent 08dbaa3 commit 1606f35
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 1606f35

Please sign in to comment.