refactor: use readonly fields in Author

This commit is contained in:
Oliver Booth 2023-08-10 14:18:29 +01:00
parent aa69713e49
commit f989b4c02f
Signed by: oliverbooth
GPG Key ID: 725DB725A0D9EE61
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
class Author {
private _name: string;
private _avatarHash: string;
private readonly _name: string;
private readonly _avatarHash: string;
constructor(json: any) {
this._name = json.name;