Skip to content

Commit

Permalink
feat: Modify private attr adding readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
syarig committed Oct 23, 2020
1 parent e85bd4a commit 08f4318
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/command/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import * as path from 'path';


export class Convert implements Walker {
private config: Config;
private setting: Setting;
private readonly config: Config;
private readonly setting: Setting;

constructor(config: Config, setting: Setting) {
this.config = config;
Expand Down
2 changes: 1 addition & 1 deletion src/command/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as init from 'src/command/init';


export class Create {
private appPath: string;
private readonly appPath: string;

constructor(appPath: string) {
this.appPath = appPath;
Expand Down
2 changes: 1 addition & 1 deletion src/command/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const deafultConfig = {
};

export class Init {
private appPath: string
private readonly appPath: string

constructor(appPath: string) {
this.appPath = appPath;
Expand Down
2 changes: 1 addition & 1 deletion src/command/merge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {SystemLogger} from 'src/logger/systemLogger';

export class Merge {
static readJson: (input: string) => Promise<object>;
private name: string;
private readonly name: string;
private mergeEachFn: (target: Test, commands: Array<Command>) => void;

constructor(name: string) {
Expand Down

0 comments on commit 08f4318

Please sign in to comment.