Refactor - EventEmitter is already exported by 'events' module
The 'events' module already exports 'EventEmitter' constructor function - https://github.com/nodejs/node/pull/2921
This commit is contained in:
parent
0df400fa60
commit
dac250b3af
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
const isGeneratorFunction = require('is-generator-function');
|
||||
const debug = require('debug')('koa:application');
|
||||
const Emitter = require('events').EventEmitter;
|
||||
const Emitter = require('events');
|
||||
const onFinished = require('on-finished');
|
||||
const response = require('./response');
|
||||
const compose = require('koa-compose');
|
||||
|
|
Loading…
Reference in a new issue