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:
Slobodan Stojanovic 2015-10-24 17:30:25 +02:00
parent 0df400fa60
commit dac250b3af

View file

@ -7,7 +7,7 @@
const isGeneratorFunction = require('is-generator-function'); const isGeneratorFunction = require('is-generator-function');
const debug = require('debug')('koa:application'); const debug = require('debug')('koa:application');
const Emitter = require('events').EventEmitter; const Emitter = require('events');
const onFinished = require('on-finished'); const onFinished = require('on-finished');
const response = require('./response'); const response = require('./response');
const compose = require('koa-compose'); const compose = require('koa-compose');