File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -121,21 +121,26 @@ export default class MissingStreamDataDetector extends BaseIssueDetector {
121121 return issues ;
122122 }
123123
124- private static mapStatsByTrackId ( items : CommonParsedInboundStreamStats [ ] [ ] ) : Map < string , CommonParsedInboundStreamStats [ ] > {
124+ private static mapStatsByTrackId (
125+ items : CommonParsedInboundStreamStats [ ] [ ] ,
126+ ) : Map < string , CommonParsedInboundStreamStats [ ] > {
125127 const statsById = new Map < string , CommonParsedInboundStreamStats [ ] > ( ) ;
126128 items . forEach ( ( inboundItems ) => {
127129 inboundItems . forEach ( ( inbountItem ) => {
128130 const accumulatedItems = statsById . get ( inbountItem . track . trackIdentifier ) || [ ] ;
129131 accumulatedItems . push ( inbountItem ) ;
130132 statsById . set ( inbountItem . track . trackIdentifier , accumulatedItems ) ;
131133 } ) ;
132- } )
134+ } ) ;
133135
134136 return statsById ;
135137 }
136138
137- private static isAllBytesReceivedDidntChange ( bytesReceived : number , inboundItems : CommonParsedInboundStreamStats [ ] ) : boolean {
138- for ( const inboundItem of inboundItems ) {
139+ private static isAllBytesReceivedDidntChange (
140+ bytesReceived : number , inboundItems : CommonParsedInboundStreamStats [ ] ,
141+ ) : boolean {
142+ for ( let i = 0 ; i < inboundItems . length ; i += 1 ) {
143+ const inboundItem = inboundItems [ i ] ;
139144 if ( inboundItem . bytesReceived !== bytesReceived ) {
140145 return false ;
141146 }
You can’t perform that action at this time.
0 commit comments