Skip to content

Commit 7dc40e7

Browse files
committed
fix lint
1 parent 9fce0b1 commit 7dc40e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/markup/common/footnote.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func (b *footnoteBlockParser) Open(parent ast.Node, reader text.Reader, pc parse
197197
return nil, parser.NoChildren
198198
}
199199
open := pos + 1
200-
closure := util.FindClosure(line[pos+1:], '[', ']', false, false)
200+
closure := util.FindClosure(line[pos+1:], '[', ']', false, false) //nolint
201201
closes := pos + 1 + closure
202202
next := closes + 1
203203
if closure > -1 {
@@ -287,7 +287,7 @@ func (s *footnoteParser) Parse(parent ast.Node, block text.Reader, pc parser.Con
287287
return nil
288288
}
289289
open := pos
290-
closure := util.FindClosure(line[pos:], '[', ']', false, false)
290+
closure := util.FindClosure(line[pos:], '[', ']', false, false) //nolint
291291
if closure < 0 {
292292
return nil
293293
}

modules/markup/mdstripper/mdstripper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (r *stripRenderer) Render(w io.Writer, source []byte, doc ast.Node) error {
4646
coalesce := prevSibIsText
4747
r.processString(
4848
w,
49-
v.Text(source),
49+
v.Text(source), //nolint:staticcheck
5050
coalesce)
5151
if v.SoftLineBreak() {
5252
r.doubleSpace(w)

0 commit comments

Comments
 (0)