Skip to content

Commit

Permalink
remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Neil committed Feb 26, 2018
1 parent 61b4d77 commit 7189ced
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/sync-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,11 @@ export const syncPointStrategies = [
break;
}

if (!syncPoint || lastDistance === null || lastDistance >= distance) {
lastDistance = distance;
syncPoint = {
time: segmentStart,
segmentIndex: i
};
}
lastDistance = distance;
syncPoint = {
time: segmentStart,
segmentIndex: i
};
}
}
return syncPoint;
Expand Down

0 comments on commit 7189ced

Please sign in to comment.