Bug 1093835 - Turn unnecessary array.map to array.forEach in pc.js. r=jib

MozReview-Commit-ID: 1oqXtncwUQ1

--HG--
extra : rebase_source : 2aad2e3c19c664ba61a26beb43ef75ee5f05bd03
This commit is contained in:
Andreas Pehrson 2017-04-28 11:22:18 +02:00
Родитель 845373e84c
Коммит e2702a6458
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1004,13 +1004,13 @@ PeerConnectionWrapper.prototype = {
return Promise.all(constraintsList.map(constraints => { return Promise.all(constraintsList.map(constraints => {
return getUserMedia(constraints).then(stream => { return getUserMedia(constraints).then(stream => {
if (constraints.audio) { if (constraints.audio) {
stream.getAudioTracks().map(track => { stream.getAudioTracks().forEach(track => {
info(this + " gUM local stream " + stream.id + info(this + " gUM local stream " + stream.id +
" with audio track " + track.id); " with audio track " + track.id);
}); });
} }
if (constraints.video) { if (constraints.video) {
stream.getVideoTracks().map(track => { stream.getVideoTracks().forEach(track => {
info(this + " gUM local stream " + stream.id + info(this + " gUM local stream " + stream.id +
" with video track " + track.id); " with video track " + track.id);
}); });