Skip to content

Commit e9bdd2b

Browse files
committed
yield *next;
1 parent ac8810b commit e9bdd2b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/**
32
* Module dependencies.
43
*/
@@ -61,7 +60,7 @@ module.exports = function(opts){
6160
throw new Error('this.session can only be set as null or an object.');
6261
});
6362

64-
yield next;
63+
yield *next;
6564

6665
// not accessed
6766
if (undefined === sess) return;
@@ -165,4 +164,4 @@ Session.prototype.save = function(){
165164

166165
debug('save %s', json);
167166
ctx.cookies.set(key, json, opts);
168-
};
167+
};

0 commit comments

Comments
 (0)