We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e84acb1 commit 60e0142Copy full SHA for 60e0142
SocketIOClientSwift/SocketStringReader.swift
@@ -43,10 +43,10 @@ struct SocketStringReader {
43
}
44
45
mutating func read(readLength: Int) -> String {
46
- let range = Range<String.Index>(start: currentIndex, end: currentIndex.advancedBy(readLength))
+ let readString = message[currentIndex..<currentIndex.advancedBy(readLength)]
47
advanceIndexBy(readLength)
48
49
- return message.substringWithRange(range)
+ return readString
50
51
52
mutating func readUntilStringOccurence(string: String) -> String {
0 commit comments