From 073d8b953bb81c47fd2bae5bcbd83b0889b66d5d Mon Sep 17 00:00:00 2001 From: Wroud Date: Mon, 23 May 2022 18:29:30 +0300 Subject: [PATCH] chore(core-events): code style --- .../packages/core-events/src/ExceptionsCatcherService.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webapp/packages/core-events/src/ExceptionsCatcherService.ts b/webapp/packages/core-events/src/ExceptionsCatcherService.ts index efa06ec822..cd574da7ee 100644 --- a/webapp/packages/core-events/src/ExceptionsCatcherService.ts +++ b/webapp/packages/core-events/src/ExceptionsCatcherService.ts @@ -14,10 +14,10 @@ import { NotificationService } from './NotificationService'; export class ExceptionsCatcherService extends Bootstrap { baseCatcher: OnErrorEventHandler | null = null; - private ignored: string[] = []; - private messageTitle = 'Uncatched exception'; + private readonly ignored: string[] = []; + private readonly messageTitle = 'Uncatched exception'; - constructor(private notificationService: NotificationService) { + constructor(private readonly notificationService: NotificationService) { super(); } @@ -36,7 +36,7 @@ export class ExceptionsCatcherService extends Bootstrap { this.ignored.push(message); } - private catcher = ( + private readonly catcher = ( event: Event | string, source?: string, lineno?: number,