Skip to content

Commit 46956d2

Browse files
authored
Fix warnings in Functions tests (#9679)
1 parent 22e65aa commit 46956d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

FirebaseFunctions/Tests/Unit/FunctionsAPITests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ final class FunctionsAPITests: XCTestCase {
5151
let callableRef = Functions.functions().httpsCallable("setCourseForAlderaan")
5252
callableRef.timeoutInterval = 60
5353
let url = URL(string: "https://localhost:8080/setCourseForAlderaan")!
54-
let callableRefByURL = Functions.functions().httpsCallable(url)
54+
_ = Functions.functions().httpsCallable(url)
5555

5656
struct Message: Codable {
5757
let hello: String
@@ -64,14 +64,14 @@ final class FunctionsAPITests: XCTestCase {
6464

6565
let callableCodable = Functions.functions()
6666
.httpsCallable("codable", requestAs: Message.self, responseAs: Response.self)
67-
let callableCodable2 = Functions.functions()
67+
_ = Functions.functions()
6868
.httpsCallable(url, requestAs: Message.self, responseAs: Response.self)
6969
let message = Message(hello: "hello", world: "world")
7070
callableCodable.call(message) { result in
7171
switch result {
7272
case let .success(response):
7373
let _: Response = response
74-
case let .failure(error):
74+
case .failure:
7575
()
7676
}
7777
}

0 commit comments

Comments
 (0)