From eaad15d210e917979fd78829e940200031d49b78 Mon Sep 17 00:00:00 2001 From: Marko Gacesa Date: Mon, 5 Feb 2024 13:59:14 +0000 Subject: [PATCH] Fix linter issues in cutLinesFromFullFileDiff (#1021) --- git/adapter/diff.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git/adapter/diff.go b/git/adapter/diff.go index 0265e41c6..78397438f 100644 --- a/git/adapter/diff.go +++ b/git/adapter/diff.go @@ -76,6 +76,8 @@ func modifyHeader(hunk types.HunkHeader, startLine, endLine int) []byte { // cutLinesFromFullFileDiff reads from r and writes to w headers and between // startLine and endLine. if startLine and endLine is equal to 0 then it uses io.Copy // warning: changes are possible and param endLine may not exist in the future +// +//nolint:gocognit func cutLinesFromFullFileDiff(w io.Writer, r io.Reader, startLine, endLine int) error { if startLine < 0 { startLine = 0