mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
use readonly constructor props.
This commit is contained in:
@ -1,11 +1,8 @@
|
||||
export class Logger {
|
||||
protected _scope: string = 'main'
|
||||
|
||||
constructor(scope?: string) {
|
||||
if (scope) {
|
||||
this._scope = scope
|
||||
}
|
||||
}
|
||||
// eslint-disable-next-line
|
||||
constructor(
|
||||
protected readonly _scope: string = 'main',
|
||||
) {}
|
||||
|
||||
protected _console(level: string, m: string, fields?: Record<string, any>) {
|
||||
let t = ''
|
||||
|
Reference in New Issue
Block a user