File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ public extension SocketParsable where Self: SocketManagerSpec & SocketDataBuffer
119
119
}
120
120
}
121
121
122
- var dataArray = String ( message. utf16 [ message. utf16. index ( reader. currentIndex, offsetBy: 1 ) ..< message . utf16 . endIndex ] ) !
122
+ var dataArray = String ( message. utf16 [ message. utf16. index ( reader. currentIndex, offsetBy: 1 ) ... ] ) !
123
123
124
124
if type == . error && !dataArray. hasPrefix ( " [ " ) && !dataArray. hasSuffix ( " ] " ) {
125
125
dataArray = " [ " + dataArray + " ] "
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ struct SocketStringReader {
54
54
}
55
55
56
56
mutating func readUntilOccurence( of string: String ) -> String {
57
- let substring = message. utf16 [ currentIndex..< message . utf16 . endIndex ]
57
+ let substring = message. utf16 [ currentIndex... ]
58
58
59
59
guard let foundIndex = substring. index ( of: string. utf16. first!) else {
60
60
currentIndex = message. utf16. endIndex
You can’t perform that action at this time.
0 commit comments