Skip to content

Commit

Permalink
fix(player): fix swift lint warning and error
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Oct 24, 2023
1 parent 59bbd47 commit b72ceea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ function_parameter_count:
error: 8

type_body_length:
warning: 350
error: 550
warning: 600
error: 800

file_length:
warning: 1000
Expand Down
3 changes: 1 addition & 2 deletions Sources/ApiVideoPlayer/ApiVideoPlayerController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -714,8 +714,7 @@ public class ApiVideoPlayerController: NSObject {
player.removeObserver(self, forKeyPath: "currentItem.presentationSize", context: nil)
player.removeObserver(self, forKeyPath: "timeControlStatus", context: nil)
player.currentItem?.removeObserver(self, forKeyPath: "status", context: nil)
if #available(iOS 15.0, macOS 12.0, *) {
} else {
if #unavailable(iOS 15.0, macOS 12.0) {
player.removeObserver(self, forKeyPath: "rate", context: nil)
}
NotificationCenter.default.removeObserver(self)
Expand Down

0 comments on commit b72ceea

Please sign in to comment.