Skip to content

Commit 302722b

Browse files
committed
Fix isRecording variable name
1 parent 22f28fa commit 302722b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

extensions/ql-vscode/src/mocks/recorder.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class Recorder extends DisposableObject {
1313
private readonly allRequests = new Map<string, MockedRequest>();
1414
private currentRecordedScenario: GitHubApiRequest[] = [];
1515

16-
private _recording = false;
16+
private _isRecording = false;
1717

1818
constructor(
1919
private readonly server: SetupServerApi,
@@ -24,19 +24,19 @@ export class Recorder extends DisposableObject {
2424
}
2525

2626
public get isRecording(): boolean {
27-
return this._recording;
27+
return this._isRecording;
2828
}
2929

3030
public get anyRequestsRecorded(): boolean {
3131
return this.currentRecordedScenario.length > 0;
3232
}
3333

3434
public start(): void {
35-
if (this._recording) {
35+
if (this._isRecording) {
3636
return;
3737
}
3838

39-
this._recording = true;
39+
this._isRecording = true;
4040

4141
this.clear();
4242

@@ -45,11 +45,11 @@ export class Recorder extends DisposableObject {
4545
}
4646

4747
public stop(): void {
48-
if (!this._recording) {
48+
if (!this._isRecording) {
4949
return;
5050
}
5151

52-
this._recording = false;
52+
this._isRecording = false;
5353

5454
this.server.events.removeListener('request:start', this.onRequestStart);
5555
this.server.events.removeListener('response:bypass', this.onResponseBypass);

0 commit comments

Comments
 (0)