Skip to content

Commit

Permalink
Refactor - EventEmitter is already exported by 'events' module
Browse files Browse the repository at this point in the history
The 'events' module already exports 'EventEmitter' constructor function - nodejs/node#2921
  • Loading branch information
stojanovic committed Oct 24, 2015
1 parent 0df400f commit dac250b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit dac250b

Please sign in to comment.