We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6420c16 commit f3bd134Copy full SHA for f3bd134
1 file changed
Sources/ByteReader.swift
@@ -25,12 +25,11 @@ public class ByteReader {
25
public var isFinished: Bool {
26
#if swift(>=4.1.50) || (swift(>=3.4) && !swift(>=4.0))
27
return { (data: Data, offset: Int) -> Bool in
28
- data.endIndex <= offset
+ return data.endIndex <= offset
29
} (self.data, self.offset)
30
#else
31
return self.data.endIndex <= self.offset
32
#endif
33
-
34
}
35
36
/// Amount of bytes left to read.
0 commit comments