Переглянути джерело

fix(e2eping) fix linting error

dev0
Saúl Ibarra Corretgé 6 місяці тому
джерело
коміт
89c627b317
1 змінених файлів з 2 додано та 2 видалено
  1. 2
    2
      modules/e2eping/e2eping.ts

+ 2
- 2
modules/e2eping/e2eping.ts Переглянути файл

250
         this.maxConferenceSize = DEFAULT_MAX_CONFERENCE_SIZE;
250
         this.maxConferenceSize = DEFAULT_MAX_CONFERENCE_SIZE;
251
         this.maxMessagesPerSecond = DEFAULT_MAX_MESSAGES_PER_SECOND;
251
         this.maxMessagesPerSecond = DEFAULT_MAX_MESSAGES_PER_SECOND;
252
 
252
 
253
-        if (options && options.e2eping) {
253
+        if (options?.e2eping) {
254
             if (typeof options.e2eping.numRequests === 'number') {
254
             if (typeof options.e2eping.numRequests === 'number') {
255
                 this.numRequests = options.e2eping.numRequests;
255
                 this.numRequests = options.e2eping.numRequests;
256
             }
256
             }
358
      */
358
      */
359
     handleRequest(participantId: string, request: { id: number; }): void {
359
     handleRequest(participantId: string, request: { id: number; }): void {
360
         // If it's a valid request, just send a response.
360
         // If it's a valid request, just send a response.
361
-        if (request && request.id) {
361
+        if (request?.id) {
362
             const response = {
362
             const response = {
363
                 type: E2E_PING_RESPONSE,
363
                 type: E2E_PING_RESPONSE,
364
                 id: request.id
364
                 id: request.id

Завантаження…
Відмінити
Зберегти