Commit dc0dc0ef authored by ale's avatar ale

Fix a couple of lint warnings

parent 25283c6a
......@@ -61,6 +61,7 @@ func match(name string) bool {
func codegen(w io.Writer, m map[string]string) {
fmt.Fprintf(w, "package %s\n", *packageName)
// nolint:errcheck
io.WriteString(w, `
import (
"fmt"
......@@ -72,6 +73,7 @@ var sriMap = map[string]string{
for k, v := range m {
fmt.Fprintf(w, "\t%q: %q,\n", k, v)
}
// nolint:errcheck
io.WriteString(w, `}
// SRIScript returns a <script> tag with resource integrity attributes.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment