Skip to content

Commit

Permalink
perf: no need to assign opts (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
dead-horse authored Nov 17, 2017
1 parent c040b59 commit b976b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ContextSession {

constructor(ctx, opts) {
this.ctx = ctx;
this.opts = Object.assign({}, opts);
this.opts = opts || {};
this.store = this.opts.ContextStore ? new this.opts.ContextStore(ctx) : this.opts.store;
}

Expand Down

0 comments on commit b976b10

Please sign in to comment.