Skip to content

Commit

Permalink
fix: Remove nullish coalescing inside getter (#1180)
Browse files Browse the repository at this point in the history
  • Loading branch information
metal-messiah authored Sep 16, 2024
1 parent 304e395 commit e537359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/utils/event-buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class EventBuffer {
* held is another event buffer
*/
get held () {
this.#held ??= new EventBuffer(this.maxPayloadSize)
if (!this.#held) this.#held = new EventBuffer(this.maxPayloadSize)
return this.#held
}

Expand Down

0 comments on commit e537359

Please sign in to comment.