make it compile
This commit is contained in:
parent
a79ae77156
commit
7635ba9038
|
@ -260,7 +260,7 @@ func ParsePatch(maxLines, maxLineCharacters, maxFiles int, reader io.Reader) (*D
|
||||||
if err != nil && err != bufio.ErrBufferFull {
|
if err != nil && err != bufio.ErrBufferFull {
|
||||||
return nil, fmt.Errorf("PeekByte: %v", err)
|
return nil, fmt.Errorf("PeekByte: %v", err)
|
||||||
}
|
}
|
||||||
newLine := bytes.IndexByte(peek, '\n');
|
newLine := bytes.IndexByte(peek, '\n')
|
||||||
if newLine == -1 {
|
if newLine == -1 {
|
||||||
// Instead of reading things, and copying memory around,
|
// Instead of reading things, and copying memory around,
|
||||||
// we simply discard them (which doesn't allocate memory)
|
// we simply discard them (which doesn't allocate memory)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user