Skip to content

Commit

Permalink
brevity
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjl-mux committed Jun 27, 2024
1 parent 9e7013f commit 9ac65e7
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions Sources/MuxPlayerSwift/InternalExtensions/URLComponents+Mux.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,12 @@ internal extension URLComponents {

var queryItems: [URLQueryItem] = []

Check warning on line 126 in Sources/MuxPlayerSwift/InternalExtensions/URLComponents+Mux.swift

View workflow job for this annotation

GitHub Actions / Run Unit Tests

variable 'queryItems' was never used; consider replacing with '_' or removing it

queryItems.append(
self.queryItems = [
URLQueryItem(
name: "token",
value: drmToken
)
)

self.queryItems = queryItems
]
}

// Generates an authenticated URL for retrieving a FairPlay
Expand All @@ -148,16 +146,12 @@ internal extension URLComponents {
self.host = "license.\(applicationCertificateHostSuffix)"
self.path = "/appcert/fairplay/\(playbackID)"

var queryItems: [URLQueryItem] = []

queryItems.append(
self.queryItems = [
URLQueryItem(
name: "token",
value: drmToken
)
)

self.queryItems = queryItems
]
}

// MARK: - Helper Methods
Expand Down

0 comments on commit 9ac65e7

Please sign in to comment.