Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
Signed-off-by: Lachezar Lechev <[email protected]>
  • Loading branch information
elpiel committed Jan 2, 2024
1 parent 0e7d8f9 commit 3b93a74
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/models/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,6 @@ fn intro_outro_update<E: Env + 'static>(
);

// if(!closestDuration) return


closest_duration.and_then(|(closest_duration, skip_gaps)| {
// var durationDiffInSec = Math.round((player.length - closestDuration) / 1000 * 10) / 10
Expand All @@ -1222,7 +1221,7 @@ fn intro_outro_update<E: Env + 'static>(

// even though we checked for len() > 0 make sure we don't panic if somebody decides to remove that check!
// introData = intro.gaps[closestDuration].seekHistory[0]
let intro_data = skip_gaps.seek_history.get(0).map(|seek_event| {
let intro_data = skip_gaps.seek_history.first().map(|seek_event| {
IntroData {
// introData.seekFrom *= durationRatio
from: (duration_ration * seek_event.from).to_integer(),
Expand Down

0 comments on commit 3b93a74

Please sign in to comment.