Skip to content

Commit

Permalink
fix: removed unnecessary hasSessions definition
Browse files Browse the repository at this point in the history
  • Loading branch information
niftylettuce committed Dec 23, 2019
1 parent ffec700 commit 06285e4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,6 @@ async function errorHandler(err) {
const hasFlash = _.isFunction(this.flash);
debug('hasFlash', hasFlash);

// check if there is session support
const hasSessions =
_.isObject(this.session) &&
_.isObject(this.sessionStore) &&
_.isString(this.sessionId) &&
_.isObject(this.session) &&
_.isFunction(this.sessionStore.set);
debug('hasSessions', hasSessions);

// check if there is a view rendering engine binding `this.render`
const hasRender = _.isFunction(this.render);
debug('hasRender', hasRender);
Expand Down

0 comments on commit 06285e4

Please sign in to comment.