From: Jérôme Benoit Date: Fri, 18 Feb 2022 10:31:08 +0000 (+0100) Subject: Add return type to getLogger X-Git-Tag: v1.1.48~11 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=28e6dd3a9fd0db84953aa8d149d0a19fadc63554;p=e-mobility-charging-stations-simulator.git Add return type to getLogger Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/Logger.ts b/src/utils/Logger.ts index a558adad..61a3ec0d 100644 --- a/src/utils/Logger.ts +++ b/src/utils/Logger.ts @@ -20,7 +20,7 @@ if (Configuration.getLogRotate()) { } let loggerInstance: Logger | null = null; -const getLogger = () => { +const getLogger = (): Logger => { if (!loggerInstance) { loggerInstance = createLogger({ level: Configuration.getLogLevel(),