Skip to content

Commit

Permalink
refactor: added readonly for some attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
rH4rtinger committed Oct 9, 2024
1 parent a7be8eb commit d9aac7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export class Logger {
* @param outputChannel - the output channel were all the messages should be written to
*/
private constructor(
private logger: winston.Logger,
private outputChannel: vscode.OutputChannel
private readonly logger: winston.Logger,
private readonly outputChannel: vscode.OutputChannel
) {
this.logger = logger;
this.outputChannel = outputChannel;
Expand Down Expand Up @@ -262,7 +262,7 @@ class VSCodeOutputChannelTransport extends TransportStream {
* @param opts - the options for the transport
*/
constructor(
private outputChannel: vscode.OutputChannel,
private readonly outputChannel: vscode.OutputChannel,
opts?: TransportStreamOptions
) {
super(opts);
Expand Down

0 comments on commit d9aac7e

Please sign in to comment.