get rid of instanceof hack in application constructor
This commit is contained in:
parent
c06d30286f
commit
132b32b287
1 changed files with 0 additions and 1 deletions
|
@ -39,7 +39,6 @@ module.exports = class Application extends Emitter {
|
|||
constructor() {
|
||||
super();
|
||||
|
||||
if (!(this instanceof Application)) return new Application;
|
||||
this.env = process.env.NODE_ENV || 'development';
|
||||
this.subdomainOffset = 2;
|
||||
this.middleware = [];
|
||||
|
|
Loading…
Reference in a new issue