Skip to content

Commit

Permalink
fix: push missing revert
Browse files Browse the repository at this point in the history
  • Loading branch information
freeboub committed Jan 22, 2025
1 parent 55a0505 commit c4fb308
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ios/Video/RCTVideo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1537,8 +1537,9 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
let isPlaying = player.timeControlStatus == .playing

guard _isPlaying != isPlaying else { return }
_isPlaying = isPlaying
_paused = !isPlaying
if (_controls) {

Check failure on line 1540 in ios/Video/RCTVideo.swift

View workflow job for this annotation

GitHub Actions / Swift-Lint

Control Statement Violation: `if`, `for`, `guard`, `switch`, `while`, and `catch` statements shouldn't unnecessarily wrap their conditionals or arguments in parentheses (control_statement)
_isPlaying = isPlaying
}
onVideoPlaybackStateChanged?(["isPlaying": isPlaying, "isSeeking": self._pendingSeek == true, "target": reactTag as Any])
}

Expand Down

0 comments on commit c4fb308

Please sign in to comment.