Skip to content

Commit

Permalink
Add nolint:gosec
Browse files Browse the repository at this point in the history
  • Loading branch information
jemiam committed Dec 18, 2023
1 parent 8e35d10 commit 49fff67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/terraform/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func wrapCode(text string) interface{} {
}
if strings.Contains(text, "```") {
if strings.Contains(text, "~~~") {
return htmltemplate.HTML(`<pre><code>` + htmltemplate.HTMLEscapeString(text) + `</code></pre>`)
return htmltemplate.HTML(`<pre><code>` + htmltemplate.HTMLEscapeString(text) + `</code></pre>`) //nolint:gosec
}
return htmltemplate.HTML("\n~~~hcl\n" + text + "\n~~~\n") //nolint:gosec
}
Expand Down

0 comments on commit 49fff67

Please sign in to comment.