Skip to content

Commit 18f748b

Browse files
committed
Update Functions.swift
Updated to renamed code. From callableResultFromResponse to callableResult
1 parent 74557e7 commit 18f748b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

FirebaseFunctions/Sources/Functions.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -684,9 +684,12 @@ enum FunctionsConstants {
684684
}
685685

686686
for dataChunk in resultArray {
687-
let json = try callableResultFromResponse(
688-
data: dataChunk.data(using: .utf8, allowLossyConversion: true),
689-
error: error
687+
let json = try callableResult(
688+
fromResponseData: dataChunk.data(
689+
using: .utf8,
690+
allowLossyConversion: true
691+
) ?? Data()
692+
690693
)
691694
continuation.yield(HTTPSCallableResult(data: json.data))
692695
}

0 commit comments

Comments
 (0)