Skip to content

Commit 0f6f411

Browse files
committed
Fix string interpolation complier warning
1 parent 189937a commit 0f6f411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Pact-iOS-SPM-Example/AnimalClientTests/AnimalClientTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class AnimalClientTests: XCTestCase {
7777
.request(method: .GET, endpoint: .animals, path: "bogus-identifier", query: nil, body: nil) { (animal: Animal?, error) in
7878
XCTAssertNotNil(error)
7979
if let animalServiceError = error as? AnimalServiceError, case .statusCode(let statusCode) = animalServiceError {
80-
debugPrint("☣️ non existing animal with status code: \(statusCode)")
80+
debugPrint("☣️ non existing animal with status code: \(statusCode ?? 0)")
8181
XCTAssertEqual(statusCode, 404)
8282
} else {
8383
XCTFail("Expected AnimalServiceError!")

0 commit comments

Comments
 (0)