From 1606f35a956c59782d0616e3b8fdc7fde45a513f Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Fri, 27 Apr 2018 15:51:38 -0700 Subject: [PATCH] remove dead code in bin/_mocha Signed-off-by: Christopher Hiller --- bin/_mocha | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/bin/_mocha b/bin/_mocha index fe1cdcc8af..c96f1c2d31 100755 --- a/bin/_mocha +++ b/bin/_mocha @@ -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) {