Skip to content

Commit deac195

Browse files
committed
resolve SR-9876 bug with different joined "implementation"
1 parent 51e18f7 commit deac195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/NIORedis/RESP/RESPEncoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public final class RESPEncoder {
2929
return "-\(error.description)\r\n".convertedToData()
3030

3131
case .array(let array):
32-
let encodedArray = array.map(encode).joined()
32+
let encodedArray = array.map(encode).reduce(into: Data(), { $0.append($1) })
3333
return "*\(array.count)\r\n".convertedToData() + encodedArray
3434
}
3535
}

0 commit comments

Comments
 (0)