Skip to content

Commit bdb026a

Browse files
committed
Tidying Whitespace
1 parent 643c5c6 commit bdb026a

4 files changed

Lines changed: 40 additions & 25 deletions

File tree

README.md

Lines changed: 37 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -479,12 +479,15 @@ function createMediaElements(pipeline, ws, callback) {
479479

480480
```javascript
481481
function connectMediaElements(webRtcEndpoint, callback) {
482-
webRtcEndpoint.connect(webRtcEndpoint, error => {
483-
if (error) {
484-
return callback(error);
482+
webRtcEndpoint.connect(
483+
webRtcEndpoint,
484+
error => {
485+
if (error) {
486+
return callback(error);
487+
}
488+
return callback(null);
485489
}
486-
return callback(null);
487-
});
490+
);
488491
}
489492
```
490493

@@ -664,18 +667,24 @@ function createMediaElements(pipeline, ws, callback) {
664667

665668
```javascript
666669
function connectMediaElements(webRtcEndpoint, faceOverlayFilter, callback) {
667-
webRtcEndpoint.connect(faceOverlayFilter, error => {
668-
if (error) {
669-
return callback(error);
670-
}
671-
faceOverlayFilter.connect(webRtcEndpoint, error => {
670+
webRtcEndpoint.connect(
671+
faceOverlayFilter,
672+
error => {
672673
if (error) {
673674
return callback(error);
674675
}
676+
faceOverlayFilter.connect(
677+
webRtcEndpoint,
678+
error => {
679+
if (error) {
680+
return callback(error);
681+
}
675682
676-
return callback(null);
677-
});
678-
});
683+
return callback(null);
684+
}
685+
);
686+
}
687+
);
679688
}
680689
```
681690

@@ -806,19 +815,25 @@ function createMediaElements(pipeline, ws, callback) {
806815

807816
```javascript
808817
function connectMediaElements(webRtcEndpoint, filter, callback) {
809-
webRtcEndpoint.connect(filter, error => {
810-
if (error) {
811-
return callback(error);
812-
}
813-
814-
filter.connect(webRtcEndpoint, error => {
818+
webRtcEndpoint.connect(
819+
filter,
820+
error => {
815821
if (error) {
816822
return callback(error);
817823
}
818824

819-
return callback(null);
820-
});
821-
});
825+
filter.connect(
826+
webRtcEndpoint,
827+
error => {
828+
if (error) {
829+
return callback(error);
830+
}
831+
832+
return callback(null);
833+
}
834+
);
835+
}
836+
);
822837
}
823838
```
824839

0 commit comments

Comments
 (0)