Skip to content

Commit

Permalink
please linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mangui committed Mar 22, 2018
1 parent 93f378f commit e099169
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/controller/stream-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,12 +383,10 @@ class StreamController extends TaskLoop {
if (PDTValue >= lastSegment.endPdt)
return null;

for(let seg = 0; seg < fragments.length; ++seg)
{
for (let seg = 0; seg < fragments.length; ++seg) {
let frag = fragments[seg];
if(PDTValue < frag.endPdt){
if (PDTValue < frag.endPdt)
return frag;
}
}
return null;
}
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/controller/stream-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ describe('StreamController tests', function () {
});

describe('PDT vs SN tests for discontinuities with PDT', function () {
let PDT = "Fri Sep 15 2017 12:11:01:523 GMT-0700 (Pacific Daylight Time)";
let PDT = 'Fri Sep 15 2017 12:11:01:523 GMT-0700 (Pacific Daylight Time)';
let fragPrevious = {
pdt: 1505502671523,
endPdt: 1505502676523,
duration: 5.000,
level: 1,
start: 10.000,
sn: 2, //Fragment with PDT 1505502671523 in level 1 does not have the same sn as in level 2 where cc is 1
sn: 2, // Fragment with PDT 1505502671523 in level 1 does not have the same sn as in level 2 where cc is 1
cc: 0
};

Expand Down

0 comments on commit e099169

Please sign in to comment.