Add return type to getLogger
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 18 Feb 2022 10:31:08 +0000 (11:31 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 18 Feb 2022 10:31:08 +0000 (11:31 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/utils/Logger.ts

index a558adad618f2d4291462744ea474392ffb3dff9..61a3ec0d3b9a9c141526cd3f293e6050da871bbc 100644 (file)
@@ -20,7 +20,7 @@ if (Configuration.getLogRotate()) {
 }
 
 let loggerInstance: Logger | null = null;
-const getLogger = () => {
+const getLogger = (): Logger => {
   if (!loggerInstance) {
     loggerInstance = createLogger({
       level: Configuration.getLogLevel(),