     }
 
     private func relativeTime(to time: TimeInterval) -> TimeInterval {
-        if isDvrAvailable {
-            return time + (dvrWindowStart ?? 0)
-        } else {
-            return time
-        }
+        return isDvrAvailable ? time + (dvrWindowStart ?? 0) : time
     }
 
     private func triggerDvrStatusIfNeeded() {

            player?.removeObserver(self, forKeyPath: "externalPlaybackActive")
            player?.removeObserver(self, forKeyPath: "rate")

            if let timeObserver = self.timeObserver {
                player?.removeTimeObserver(timeObserver)
            }
        }

            return
        }

        let timeScale = Int32(NSEC_PER_SEC)
        let time = CMTimeMakeWithSeconds(timeInterval, preferredTimescale: timeScale)
        let tolerance = CMTime(value: 0, timescale: timeScale)

        trigger(.willSeek)

