Skip to content

Commit

Permalink
optional param for LocalPeers
Browse files Browse the repository at this point in the history
  • Loading branch information
gmaclennan committed Nov 7, 2023
1 parent 5a47b56 commit 9921f66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/local-peers.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ export class LocalPeers extends TypedEmitter {

/**
*
* @param {object} opts
* @param {object} [opts]
* @param {Logger} [opts.logger]
*/
constructor({ logger }) {
constructor({ logger } = {}) {
super()
this.#l = Logger.create('localPeers', logger)
}
Expand Down

0 comments on commit 9921f66

Please sign in to comment.