From b6d8aea5bb5342f1927c5d01665f3c6379e1f042 Mon Sep 17 00:00:00 2001 From: Jonas Franz Date: Thu, 31 May 2018 16:46:40 +0200 Subject: [PATCH] gofmt Signed-off-by: Jonas Franz --- models/issue_comment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/issue_comment.go b/models/issue_comment.go index 1328543c4..ec07bc803 100644 --- a/models/issue_comment.go +++ b/models/issue_comment.go @@ -409,7 +409,7 @@ func (c *Comment) AsDiff() (*Diff, error) { break } } - if searchedLineIdx >= setting.UI.CodeCommentLines - 1 { + if searchedLineIdx >= setting.UI.CodeCommentLines-1 { first := searchedLineIdx - setting.UI.CodeCommentLines + 1 last := searchedLineIdx + 1 sec.Lines = sec.Lines[first:last]