Skip to content

Commit

Permalink
refactor: enforce no-multiple-empty-lines
Browse files Browse the repository at this point in the history
  • Loading branch information
prlanzarin committed Apr 28, 2022
1 parent 8584201 commit 946b2cb
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 18 deletions.
1 change: 0 additions & 1 deletion lib/audio/client-static-transceiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,6 @@ module.exports = class ClientAudioStTransceiver extends BaseProvider {
return answer;
}


processAnswer (answer) {
if (this.mediaId) {
const options = {
Expand Down
1 change: 0 additions & 1 deletion lib/base/MCSAPIWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ module.exports = class MCSAPIWrapper extends EventEmitter {
}
}


async setConferenceFloor (roomId, mediaId) {
try {
return this._mcs.setConferenceFloor(roomId, mediaId);
Expand Down
2 changes: 0 additions & 2 deletions lib/main/janitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,11 @@ const _destroyRoomOnEjectAllFromVoiceConf = () => {
});
};


const clockIn = () => {
RedisGateway.addSubscribeChannel(TO_VOICE_CONF);
_destroyRoomOnEjectAllFromVoiceConf();
};


module.exports = {
clockIn,
}
1 change: 0 additions & 1 deletion lib/main/metrics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const MainPrometheusAgent = new PrometheusAgent(METRICS_HOST, METRICS_PORT, {
collectDefaultMetrics: COLLECT_DEFAULT_METRICS,
});


const injectMetrics = (metricsDictionary) => {
if (METRICS_ENABLED) {
MainPrometheusAgent.injectMetrics(metricsDictionary);
Expand Down
1 change: 0 additions & 1 deletion lib/mcs-core/lib/adapters/freeswitch/freeswitch.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const SIP_USER_AGENT = config.has('freeswitch.sipUserAgent')
? config.get('freeswitch.sipUserAgent')
: 'bbb-webrtc-sfu';


let instance = null;

module.exports = class Freeswitch extends EventEmitter {
Expand Down
1 change: 0 additions & 1 deletion lib/mcs-core/lib/adapters/kurento/kurento.js
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,6 @@ module.exports = class Kurento extends EventEmitter {
return t;
});


sinkTransposersToRelease.forEach(st => {
this._mediaPipelines[room][st].transposers[transposerId].release()
this.balancer.decrementHostStreams(st, C.MEDIA_PROFILE.MAIN);
Expand Down
1 change: 0 additions & 1 deletion lib/mcs-core/lib/adapters/mediasoup/mediasoup-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@ module.exports = class MediasoupAdapter extends EventEmitter {
}
}


// See contract comment @connect method
// eslint-disable-next-line no-unused-vars
disconnect (sourceId, sinkId, type) {
Expand Down
1 change: 0 additions & 1 deletion lib/mcs-core/lib/adapters/mediasoup/prom-metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ const buildDefaultMetrics = () => {
return MS_METRICS;
};


let WORKER_RESOURCE_METRICS;
const buildWorkerResouceMetrics = async (collector) => {
let lastResourceUsageSum = await collector();
Expand Down
1 change: 0 additions & 1 deletion lib/mcs-core/lib/adapters/mediasoup/routers.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ const releaseAllRoutersWithIdSuffix = ({ roomId: routerIdSuffix }) => {
});
}


module.exports = {
getOrCreateRouter,
storeRouter,
Expand Down
1 change: 0 additions & 1 deletion lib/mcs-core/lib/adapters/mediasoup/sdp-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ module.exports = class MediasoupSDPElement extends BaseMediasoupElement {
adapterOptions: this.adapterOptions,
});


Logger.trace("mediasoup: local descriptor set", {
elementId: this.id, type: this.type, routerId: this.routerId,
transportId: this.transportSet.id, descriptor: this.localDescriptor,
Expand Down
1 change: 0 additions & 1 deletion lib/mcs-core/lib/adapters/mediasoup/transports.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ module.exports = class TransportSet {
return this._transport;
}


set rtcpMux (state = true) {
this._rtcpMux = state;
}
Expand Down
1 change: 0 additions & 1 deletion lib/mcs-core/lib/adapters/mediasoup/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ const filterValidMediaTypes = (mediaTypes) => {
return filteredMediaTypes;
}


const mapMTypesOrProfilesToKindDirection = (mTypesOrProfiles) => {
const kindDirectionArray = [];
for (const [mediaType, direction] of Object.entries(mTypesOrProfiles)) {
Expand Down
1 change: 0 additions & 1 deletion lib/mcs-core/lib/api/mcs-message-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ module.exports = class MCSRouter {
}
}


async onEvent (args) {
const { eventName, identifier } = args;
try {
Expand Down
1 change: 0 additions & 1 deletion lib/mcs-core/lib/metrics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const MCSPrometheusAgent = new PrometheusAgent(METRICS_HOST, METRICS_PORT, {
collectDefaultMetrics: COLLECT_DEFAULT_METRICS,
});


const registerMediaUnitTypeMetrics = (operation, media) => {
if (media.mediaTypes.video) {
const direction = media.mediaTypes.video === true ? 'sendrecv' : media.mediaTypes.video;
Expand Down
2 changes: 0 additions & 2 deletions lib/mcs-core/lib/model/room.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ module.exports = class Room {
? undefined
: this._previousConferenceFloors.slice(0, MAX_PREVIOUS_FLOORS).map(m => m.getMediaInfo());


const conferenceFloorInfo = {
floor,
previousFloor
Expand All @@ -152,7 +151,6 @@ module.exports = class Room {
? undefined
: this._previousContentFloors.slice(0, MAX_PREVIOUS_FLOORS).map(m => m.getMediaInfo());


const contentFloorInfo = {
floor,
previousFloor
Expand Down
1 change: 0 additions & 1 deletion lib/mcs-core/lib/utils/sdp-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,6 @@ module.exports = class SdpWrapper {
}
});


return transform.write(res);
}

Expand Down

0 comments on commit 946b2cb

Please sign in to comment.