From f989b4c02f89577eb885e6d01d46cee5be2a9685 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Thu, 10 Aug 2023 14:18:29 +0100 Subject: [PATCH] refactor: use readonly fields in Author --- src/ts/Author.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ts/Author.ts b/src/ts/Author.ts index d435923..e97c2fc 100644 --- a/src/ts/Author.ts +++ b/src/ts/Author.ts @@ -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;