Skip to content

Commit 15179eb

Browse files
committed
Linting: disable rule no-unused-vars for one line.
1 parent 0a43469 commit 15179eb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/adapters/MochaAdapter.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ export default class MochaAdapter extends EventEmitter {
1111
mocha.reporter((runner) => {
1212
this.runner = runner
1313

14-
let constructor = this.origReporter.bind(this.mocha, this.runner)
15-
let origReporterInstance = new constructor()
14+
// eslint-disable-next-line no-unused-vars
15+
let origReporterInstance = new (this.origReporter.bind(this.mocha,
16+
this.runner))()
1617

1718
runner.on('start', this.onStart.bind(this))
1819
runner.on('suite', this.onSuite.bind(this))

0 commit comments

Comments
 (0)