Skip to content

Commit

Permalink
chore: use spread instead of assign
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhus committed Apr 27, 2020
1 parent 9708a4f commit 8275a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PgPubSub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export class PgPubSub extends EventEmitter {
) {
super();

this.options = Object.assign({}, DefaultOptions, options);
this.options = { ...DefaultOptions, ...options };
this.pgClient = (this.options.pgClient || new Client(this.options)) as
PgClient;

Expand Down

0 comments on commit 8275a50

Please sign in to comment.