From 7635ba90387e98fa4da7283b3fa54aa0dc1a3acc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=22BKC=22=20Carlb=C3=A4cker?= Date: Thu, 5 Jul 2018 00:33:49 +0200 Subject: [PATCH] make it compile --- models/git_diff.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/git_diff.go b/models/git_diff.go index 5b3d4932f..ef1047961 100644 --- a/models/git_diff.go +++ b/models/git_diff.go @@ -260,7 +260,7 @@ func ParsePatch(maxLines, maxLineCharacters, maxFiles int, reader io.Reader) (*D if err != nil && err != bufio.ErrBufferFull { return nil, fmt.Errorf("PeekByte: %v", err) } - newLine := bytes.IndexByte(peek, '\n'); + newLine := bytes.IndexByte(peek, '\n') if newLine == -1 { // Instead of reading things, and copying memory around, // we simply discard them (which doesn't allocate memory)