Skip to content

Commit

Permalink
Update FirebaseFunctions/Sources/Functions.swift
Browse files Browse the repository at this point in the history
Accepted suggestion.

Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
  • Loading branch information
eBlender and ncooke3 authored Jan 16, 2025
1 parent 0df7f8d commit 231c7dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FirebaseFunctions/Sources/Functions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 231c7dd

Please sign in to comment.