Skip to content

Commit

Permalink
Use object spread.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlehn committed Mar 24, 2022
1 parent 0478801 commit 1ebcc1f
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 @@ -80,7 +80,7 @@ api.process = async ({
// store original options to use when replaying events
const originalOptions = options;
// shallow clone options with custom event handler
options = Object.assign({}, options, {eventHandler});
options = {...options, eventHandler};

// resolve contexts
const resolved = await options.contextResolver.resolve({
Expand Down

0 comments on commit 1ebcc1f

Please sign in to comment.