Skip to content

Commit

Permalink
FIX: SwiftLint complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
dcamenisch committed Nov 21, 2023
1 parent 155b0e6 commit d39e8fb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/TMDb/Extensions/URL+QueryItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extension URL {
guard let languageCode else {
return self
}

return appendingQueryItem(name: QueryItemName.language, value: languageCode)
}

Expand Down
12 changes: 10 additions & 2 deletions Tests/TMDbTests/TVEpisodes/ENdpoints/TVEpisodesEndpointTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ final class TVEpisodesEndpointTests: XCTestCase {
string: "/tv/1/season/2/episode/3/images?include_image_language=\(languageCode),null"
))

let url = TVEpisodesEndpoint.images(tvSeriesID: 1, seasonNumber: 2, episodeNumber: 3, languageCode: languageCode).path
let url = TVEpisodesEndpoint.images(
tvSeriesID: 1,
seasonNumber: 2,
episodeNumber: 3,
languageCode: languageCode).path

XCTAssertEqual(url, expectedURL)
}
Expand All @@ -28,7 +32,11 @@ final class TVEpisodesEndpointTests: XCTestCase {
string: "/tv/1/season/2/episode/3/videos?include_video_language=\(languageCode),null"
))

let url = TVEpisodesEndpoint.videos(tvSeriesID: 1, seasonNumber: 2, episodeNumber: 3, languageCode: languageCode).path
let url = TVEpisodesEndpoint.videos(
tvSeriesID: 1,
seasonNumber: 2,
episodeNumber: 3,

Check failure on line 38 in Tests/TMDbTests/TVEpisodes/ENdpoints/TVEpisodesEndpointTests.swift

View workflow job for this annotation

GitHub Actions / Swiftlint

Lines should not have trailing whitespace (trailing_whitespace)
languageCode: languageCode).path

XCTAssertEqual(url, expectedURL)
}
Expand Down

0 comments on commit d39e8fb

Please sign in to comment.