Skip to content

Commit 8119c76

Browse files
committed
Remove unused nolint:govet usages
1 parent 96085f9 commit 8119c76

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

usage/renderer.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -192,36 +192,36 @@ func (r *Renderer) RenderNode(w io.Writer, node *md.Node, entering bool) md.Walk
192192
r.write(node.Literal)
193193
} else {
194194
s := strings.ReplaceAll(string(node.Literal), "\n", "\n"+strings.Repeat(" ", r.depth))
195-
r.printf(s) //nolint:govet // allow non-constant
195+
r.printf(s)
196196
}
197197
case md.Heading:
198198
if entering {
199-
r.printf(ansi.ColorCode("default+bh")) //nolint:govet // allow non-constant
199+
r.printf(ansi.ColorCode("default+bh"))
200200
} else {
201201
r.printf(ansi.Reset)
202202
r.printf("\n")
203203
}
204204
case md.Link:
205205
if entering {
206-
r.printf(ansi.ColorCode("default+b")) //nolint:govet // allow non-constant
206+
r.printf(ansi.ColorCode("default+b"))
207207
//r.printf("\033[2m") // Dim
208208
} else {
209209
r.printf(ansi.Reset)
210210
}
211211
case md.Strong:
212212
if entering {
213-
r.printf(ansi.ColorCode("default+bh")) //nolint:govet // allow non-constant
213+
r.printf(ansi.ColorCode("default+bh"))
214214
} else {
215215
r.printf(ansi.Reset)
216216
}
217217
case md.Emph:
218218
if entering {
219-
r.printf(ansi.ColorCode("default+u")) //nolint:govet // allow non-constant
219+
r.printf(ansi.ColorCode("default+u"))
220220
} else {
221221
r.printf(ansi.Reset)
222222
}
223223
case md.Code:
224-
r.printf(ansi.ColorCode("default+u")) //nolint:govet // allow non-constant
224+
r.printf(ansi.ColorCode("default+u"))
225225
r.write(node.Literal)
226226
r.printf(ansi.Reset)
227227
case md.List:
@@ -332,7 +332,7 @@ func (r *Renderer) RenderNode(w io.Writer, node *md.Node, entering bool) md.Walk
332332
for i := 0; i < len(parts); i++ {
333333
parts[i] = "\xff" + ansi.ColorCode("default+bh") + "\xff" + parts[i] + "\xff" + ansi.Reset + "\xff"
334334
}
335-
r.printf(strings.Join(parts, "\t") + "\t\n") //nolint:govet // allow non-constant
335+
r.printf(strings.Join(parts, "\t") + "\t\n")
336336
}
337337
}
338338
case md.TableRow:

0 commit comments

Comments
 (0)