Skip to content

Commit dc32bb8

Browse files
committed
nolint the deprecation from Goldmark 1.4.4 (go-gitea#18420)
Backport go-gitea#18420 * nolint the deprecation Signed-off-by: Andrew Thornton <[email protected]>
1 parent 4032699 commit dc32bb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/markup/common/footnote.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func (b *footnoteBlockParser) Open(parent ast.Node, reader text.Reader, pc parse
205205
}
206206
open := pos + 1
207207
closes := 0
208-
closure := util.FindClosure(line[pos+1:], '[', ']', false, false)
208+
closure := util.FindClosure(line[pos+1:], '[', ']', false, false) //nolint
209209
closes = pos + 1 + closure
210210
next := closes + 1
211211
if closure > -1 {
@@ -296,7 +296,7 @@ func (s *footnoteParser) Parse(parent ast.Node, block text.Reader, pc parser.Con
296296
return nil
297297
}
298298
open := pos
299-
closure := util.FindClosure(line[pos:], '[', ']', false, false)
299+
closure := util.FindClosure(line[pos:], '[', ']', false, false) //nolint
300300
if closure < 0 {
301301
return nil
302302
}

0 commit comments

Comments
 (0)