Skip to content

Commit 21b44ed

Browse files
committed
fix PR issue
1 parent cfa5e7b commit 21b44ed

File tree

2 files changed

+10
-18
lines changed

2 files changed

+10
-18
lines changed

packages/replay/src/eventBuffer.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ export class EventBufferCompressionWorker implements EventBuffer {
8888
this._worker = worker;
8989
}
9090

91+
/**
92+
* Note that this may not reflect what is actually in the event buffer. This
93+
* is only a local count of the buffer size since `addEvent` is async.
94+
*/
95+
public get length(): number {
96+
return this._eventBufferItemLength;
97+
}
98+
9199
/**
92100
* Destroy the event buffer.
93101
*/
@@ -97,14 +105,6 @@ export class EventBufferCompressionWorker implements EventBuffer {
97105
this._worker = null;
98106
}
99107

100-
/**
101-
* Note that this may not reflect what is actually in the event buffer. This
102-
* is only a local count of the buffer size since `addEvent` is async.
103-
*/
104-
public get length(): number {
105-
return this._eventBufferItemLength;
106-
}
107-
108108
/**
109109
* Add an event to the event buffer.
110110
*/

packages/replay/src/integration.ts

+2-10
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,6 @@ export class Replay implements Integration {
3939

4040
readonly options: ReplayPluginOptions;
4141

42-
/** If replay has already been initialized */
43-
protected get _isInitialized(): boolean {
44-
return _initialized;
45-
}
46-
47-
/** Update _isInitialized */
48-
protected set _isInitialized(value: boolean) {
49-
_initialized = value;
50-
}
51-
5242
private _replay?: ReplayContainer;
5343

5444
constructor({
@@ -139,10 +129,12 @@ Sentry.init({ replaysOnErrorSampleRate: ${errorSampleRate} })`,
139129
this._isInitialized = true;
140130
}
141131

132+
/** If replay has already been initialized */
142133
protected get _isInitialized(): boolean {
143134
return _initialized;
144135
}
145136

137+
/** Update _isInitialized */
146138
protected set _isInitialized(value: boolean) {
147139
_initialized = value;
148140
}

0 commit comments

Comments
 (0)