get rid of instanceof hack in application constructor

This commit is contained in:
Tejas Manohar 2015-10-13 02:17:47 -05:00
parent c06d30286f
commit 132b32b287

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 = [];