Skip to content

Commit 06285e4

Browse files
committed
fix: removed unnecessary hasSessions definition
1 parent ffec700 commit 06285e4

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/index.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,6 @@ async function errorHandler(err) {
7575
const hasFlash = _.isFunction(this.flash);
7676
debug('hasFlash', hasFlash);
7777

78-
// check if there is session support
79-
const hasSessions =
80-
_.isObject(this.session) &&
81-
_.isObject(this.sessionStore) &&
82-
_.isString(this.sessionId) &&
83-
_.isObject(this.session) &&
84-
_.isFunction(this.sessionStore.set);
85-
debug('hasSessions', hasSessions);
86-
8778
// check if there is a view rendering engine binding `this.render`
8879
const hasRender = _.isFunction(this.render);
8980
debug('hasRender', hasRender);

0 commit comments

Comments
 (0)