Selaa lähdekoodia

fix(e2eping) fix linting error

dev0
Saúl Ibarra Corretgé 6 kuukautta sitten
vanhempi
commit
89c627b317
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2
    2
      modules/e2eping/e2eping.ts

+ 2
- 2
modules/e2eping/e2eping.ts Näytä tiedosto

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

Loading…
Peruuta
Tallenna