From 7189ced65b759fd72f24b8d9a0fab11f40f87c66 Mon Sep 17 00:00:00 2001 From: Matthew Neil Date: Mon, 26 Feb 2018 18:53:46 -0500 Subject: [PATCH] remove unnecessary check --- src/sync-controller.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/sync-controller.js b/src/sync-controller.js index 4e05cfbaa..6b1d0c4d2 100644 --- a/src/sync-controller.js +++ b/src/sync-controller.js @@ -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;