refactor: use readonly fields in Author
This commit is contained in:
parent
aa69713e49
commit
f989b4c02f
|
@ -1,6 +1,6 @@
|
||||||
class Author {
|
class Author {
|
||||||
private _name: string;
|
private readonly _name: string;
|
||||||
private _avatarHash: string;
|
private readonly _avatarHash: string;
|
||||||
|
|
||||||
constructor(json: any) {
|
constructor(json: any) {
|
||||||
this._name = json.name;
|
this._name = json.name;
|
||||||
|
|
Loading…
Reference in New Issue