Merge pull request #528 from tejasmanohar/rid_of_instanceof_hack

get rid of instanceof hack in application constructor
This commit is contained in:
TJ Holowaychuk 2015-10-13 00:21:42 -07:00
commit bfa53fbc28
1 changed files with 0 additions and 1 deletions

View File

@ -39,7 +39,6 @@ module.exports = class Application extends Emitter {
constructor() { constructor() {
super(); super();
if (!(this instanceof Application)) return new Application;
this.env = process.env.NODE_ENV || 'development'; this.env = process.env.NODE_ENV || 'development';
this.subdomainOffset = 2; this.subdomainOffset = 2;
this.middleware = []; this.middleware = [];