Skip to content

Commit

Permalink
[iOS] Fix issue conforming to protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
dcvz committed Jul 6, 2019
1 parent 1607df4 commit 3f26e6a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ios/RNTrackPlayer/Models/Track.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,12 @@ class Track: NSObject, AudioItem, TimePitching, AssetOptionsProviding {

// MARK: - Authorizing Protocol

func getAssetOptions() -> [String : Any] {
return headers ? ["AVURLAssetHTTPHeaderFieldsKey": headers] : [:]
func getAssetOptions() -> [String: Any] {
if let headers = headers {
return ["AVURLAssetHTTPHeaderFieldsKey": headers]
}

return [:]
}

}

0 comments on commit 3f26e6a

Please sign in to comment.