mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
Mark a few members readonly
This commit is contained in:
@@ -91,9 +91,9 @@ export interface ICallback<T> {
|
||||
|
||||
export class Reader<T> {
|
||||
|
||||
private readable: stream.Readable;
|
||||
private callback: ICallback<T>;
|
||||
private buffer: ProtocolBuffer;
|
||||
private readonly readable: stream.Readable;
|
||||
private readonly callback: ICallback<T>;
|
||||
private readonly buffer: ProtocolBuffer;
|
||||
private nextMessageLength: number;
|
||||
|
||||
public constructor(readable: stream.Readable, callback: ICallback<T>) {
|
||||
@@ -115,7 +115,7 @@ export class Reader<T> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
let msg = this.buffer.tryReadContent(this.nextMessageLength);
|
||||
const msg = this.buffer.tryReadContent(this.nextMessageLength);
|
||||
if (msg === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user