From dc32bb8dc3c29bec1f7f3ddc4a94c28f4073dbae Mon Sep 17 00:00:00 2001 From: zeripath Date: Sat, 29 Jan 2022 13:17:21 +0000 Subject: [PATCH] nolint the deprecation from Goldmark 1.4.4 (#18420) Backport #18420 * nolint the deprecation Signed-off-by: Andrew Thornton --- modules/markup/common/footnote.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/markup/common/footnote.go b/modules/markup/common/footnote.go index 92a54101f0c4a..1621c7f15f493 100644 --- a/modules/markup/common/footnote.go +++ b/modules/markup/common/footnote.go @@ -205,7 +205,7 @@ func (b *footnoteBlockParser) Open(parent ast.Node, reader text.Reader, pc parse } open := pos + 1 closes := 0 - closure := util.FindClosure(line[pos+1:], '[', ']', false, false) + closure := util.FindClosure(line[pos+1:], '[', ']', false, false) //nolint closes = pos + 1 + closure next := closes + 1 if closure > -1 { @@ -296,7 +296,7 @@ func (s *footnoteParser) Parse(parent ast.Node, block text.Reader, pc parser.Con return nil } open := pos - closure := util.FindClosure(line[pos:], '[', ']', false, false) + closure := util.FindClosure(line[pos:], '[', ']', false, false) //nolint if closure < 0 { return nil }