From 231c7dd822cdc623a34059e5c59d8bec4896223c Mon Sep 17 00:00:00 2001 From: Eblen M Date: Thu, 16 Jan 2025 17:16:54 -0600 Subject: [PATCH] Update FirebaseFunctions/Sources/Functions.swift Accepted suggestion. Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com> --- FirebaseFunctions/Sources/Functions.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FirebaseFunctions/Sources/Functions.swift b/FirebaseFunctions/Sources/Functions.swift index 990ff82cc2f..73dcb51c919 100644 --- a/FirebaseFunctions/Sources/Functions.swift +++ b/FirebaseFunctions/Sources/Functions.swift @@ -675,9 +675,9 @@ enum FunctionsConstants { } if let dataChunk = String(data: data, encoding: .utf8) { - // We remove the "data :" field so it can be safely parsed to Json. + // We remove the "data:" field so it can be safely parsed to Json. let dataChunkToJson = dataChunk.split(separator: "\n").map { - String($0.dropFirst(6)) + String($0.dropFirst(5)) } resultArray.append(contentsOf: dataChunkToJson) } else {