Skip to content

Commit af506d5

Browse files
committed
lint
1 parent a29e40c commit af506d5

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

modules/markup/markdown/transform_blockquote.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (g *ASTTransformer) extractBlockquoteAttentionEmphasis(firstParagraph ast.N
4545
if !ok {
4646
return "", nil
4747
}
48-
val1 := string(node1.Text(reader.Source()))
48+
val1 := string(node1.Text(reader.Source())) //nolint:staticcheck
4949
attentionType := strings.ToLower(val1)
5050
if g.attentionTypes.Contains(attentionType) {
5151
return attentionType, []ast.Node{node1}

modules/markup/markdown/transform_codespan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func cssColorHandler(value string) bool {
6969
}
7070

7171
func (g *ASTTransformer) transformCodeSpan(_ *markup.RenderContext, v *ast.CodeSpan, reader text.Reader) {
72-
colorContent := v.Text(reader.Source())
72+
colorContent := v.Text(reader.Source()) //nolint:staticcheck
7373
if cssColorHandler(string(colorContent)) {
7474
v.AppendChild(v, NewColorPreview(colorContent))
7575
}

modules/markup/markdown/transform_heading.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func (g *ASTTransformer) transformHeading(_ *markup.RenderContext, v *ast.Headin
1919
v.SetAttribute(attr.Name, []byte(fmt.Sprintf("%v", attr.Value)))
2020
}
2121
}
22-
txt := v.Text(reader.Source())
22+
txt := v.Text(reader.Source()) //nolint:staticcheck
2323
header := markup.Header{
2424
Text: util.UnsafeBytesToString(txt),
2525
Level: v.Level,

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)

services/auth/source/ldap/source_search.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ func dial(source *Source) (*ldap.Conn, error) {
117117
}
118118

119119
if source.SecurityProtocol == SecurityProtocolLDAPS {
120-
return ldap.DialTLS("tcp", net.JoinHostPort(source.Host, strconv.Itoa(source.Port)), tlsConfig)
120+
return ldap.DialTLS("tcp", net.JoinHostPort(source.Host, strconv.Itoa(source.Port)), tlsConfig) //nolint:staticcheck
121121
}
122122

123-
conn, err := ldap.Dial("tcp", net.JoinHostPort(source.Host, strconv.Itoa(source.Port)))
123+
conn, err := ldap.Dial("tcp", net.JoinHostPort(source.Host, strconv.Itoa(source.Port))) //nolint:staticcheck
124124
if err != nil {
125125
return nil, fmt.Errorf("error during Dial: %w", err)
126126
}

0 commit comments

Comments
 (0)