Unify constructor

This commit is contained in:
2024-05-15 14:16:50 +02:00
parent 87f5865915
commit 7d0a87a2eb
+3 -5
View File
@@ -7,11 +7,9 @@ export let options: Options = {
}
export class Logger {
private readonly _namespace: string
constructor(namespace: string) {
this._namespace = namespace
}
constructor(
private readonly _namespace: string
) {}
public get namespace() : string {
return this._namespace