Skip to content

Commit e537359

Browse files
fix: Remove nullish coalescing inside getter (#1180)
1 parent 304e395 commit e537359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/utils/event-buffer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class EventBuffer {
4545
* held is another event buffer
4646
*/
4747
get held () {
48-
this.#held ??= new EventBuffer(this.maxPayloadSize)
48+
if (!this.#held) this.#held = new EventBuffer(this.maxPayloadSize)
4949
return this.#held
5050
}
5151

0 commit comments

Comments
 (0)