mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(core): Delete duplicate code across all commands (#5452)
This commit is contained in:
committed by
GitHub
parent
8494c97821
commit
5194513850
@@ -3,8 +3,9 @@ import type { ILogger, LogTypes } from './Interfaces';
|
||||
|
||||
let logger: ILogger | undefined;
|
||||
|
||||
export function init(loggerInstance: ILogger) {
|
||||
export function init<L extends ILogger>(loggerInstance: L) {
|
||||
logger = loggerInstance;
|
||||
return loggerInstance;
|
||||
}
|
||||
|
||||
export function getInstance(): ILogger {
|
||||
|
||||
Reference in New Issue
Block a user