aboutsummaryrefslogtreecommitdiffstats
path: root/syz-hub/http.go
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2025-07-15 16:43:33 +0200
committerTaras Madan <tarasmadan@google.com>2025-07-17 08:31:25 +0000
commitabd11cfd08430ec5f9d2c6dbd0e0f798816922d1 (patch)
tree522a8cc072d07d85c8a1d37b5b3ab89483599b48 /syz-hub/http.go
parenta81f309b57265e5760b926274e1f1681e7550e41 (diff)
all: apply linter auto fixes
./tools/syz-env bin/golangci-lint run ./... --fix
Diffstat (limited to 'syz-hub/http.go')
-rw-r--r--syz-hub/http.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/syz-hub/http.go b/syz-hub/http.go
index 06f777f34..14fa43f7f 100644
--- a/syz-hub/http.go
+++ b/syz-hub/http.go
@@ -70,7 +70,7 @@ func (hub *Hub) httpSummary(w http.ResponseWriter, r *http.Request) {
}
func compileTemplate(html string) *template.Template {
- return template.Must(template.New("").Parse(strings.Replace(html, "{{STYLE}}", htmlStyle, -1)))
+ return template.Must(template.New("").Parse(strings.ReplaceAll(html, "{{STYLE}}", htmlStyle)))
}
type UISummaryData struct {