Unify constructor
This commit is contained in:
+3
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user