Skip to content

Commit 2e6f8cf

Browse files
committed
fix: run npm run format
1 parent 24b3a40 commit 2e6f8cf

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/room/data-track/LocalDataTrack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default class LocalDataTrack implements ILocalTrack, IDataTrack {
3333
isPublished() {
3434
// NOTE: a track which is internally in the "resubscribing" state is still considered
3535
// published from the public API perspective.
36-
return this.descriptor?.type === 'active' && this.descriptor.publishState !== 'unpublished'
36+
return this.descriptor?.type === 'active' && this.descriptor.publishState !== 'unpublished';
3737
}
3838

3939
/** Try pushing a frame to subscribers of the track.

src/room/data-track/outgoing/OutgoingDataTrackManager.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,9 @@ describe('DataTrackOutgoingManager', () => {
409409
expect(localDataTrack.isPublished()).toStrictEqual(true);
410410

411411
// But, even though `isPublished` is true, pushing data should drop (no sfu to send them to!)
412-
await expect(() => localDataTrack.tryPush(new Uint8Array([0x01, 0x02, 0x03, 0x04, 0x05]))).rejects.toThrowError('Frame was dropped');
412+
await expect(() =>
413+
localDataTrack.tryPush(new Uint8Array([0x01, 0x02, 0x03, 0x04, 0x05])),
414+
).rejects.toThrowError('Frame was dropped');
413415

414416
// 2. This publish request should be sent along to the SFU
415417
const sfuPublishEvent = await managerEvents.waitFor('sfuPublishRequest');

src/room/data-track/outgoing/OutgoingDataTrackManager.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,12 +318,12 @@ export default class OutgoingDataTrackManager extends (EventEmitter as new () =>
318318
}
319319

320320
/** Republish all tracks.
321-
*
322-
* This must be sent after a full reconnect in order for existing publications
323-
* to be recognized by the SFU. Each republished track will be assigned a new SID.
324-
*/
321+
*
322+
* This must be sent after a full reconnect in order for existing publications
323+
* to be recognized by the SFU. Each republished track will be assigned a new SID.
324+
*/
325325
sfuWillRepublishTracks() {
326-
for (const [ handle, descriptor ] of this.descriptors.entries()) {
326+
for (const [handle, descriptor] of this.descriptors.entries()) {
327327
switch (descriptor.type) {
328328
case 'pending':
329329
// TODO: support republish for pending publications

0 commit comments

Comments
 (0)