Skip to content

Commit

Permalink
nolint the deprecation from Goldmark 1.4.4 (go-gitea#18420)
Browse files Browse the repository at this point in the history
Backport go-gitea#18420

* nolint the deprecation

Signed-off-by: Andrew Thornton <[email protected]>
  • Loading branch information
zeripath committed Mar 18, 2022
1 parent 4032699 commit dc32bb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/markup/common/footnote.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit dc32bb8

Please sign in to comment.