From d9d6524cadd655e6d8e9398b26fdfef332f30f4d Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Mon, 25 Mar 2024 14:22:10 +0900 Subject: [PATCH] attempt to fix test error --- packages/backend/src/core/FileInfoService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/core/FileInfoService.ts b/packages/backend/src/core/FileInfoService.ts index e145f6699c..e6bd08ee4d 100644 --- a/packages/backend/src/core/FileInfoService.ts +++ b/packages/backend/src/core/FileInfoService.ts @@ -56,7 +56,8 @@ export class FileInfoService { private aiService: AiService, private loggerService: LoggerService, ) { - this.logger = this.loggerService.getLogger('file-info'); + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + this.logger = this.loggerService?.getLogger('file-info'); // なぜか TypeError: Cannot read properties of undefined (reading 'getLogger') と言われる } /**