Skip to content

Commit 671ab05

Browse files
committed
Small template write cleanup
1 parent 0169122 commit 671ab05

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func searchJS(uris []string, b *bytes.Buffer) {
165165
var urls = [];`)
166166
for _, u := range uris {
167167
encodedURL, _ := json.Marshal(u)
168-
b.WriteString(fmt.Sprintf("\n urls.push(window.open(%s));", encodedURL))
168+
fmt.Fprintf(b, "\n urls.push(window.open(%s));", encodedURL)
169169
}
170170
b.WriteString(`
171171
var goBack = function () {

0 commit comments

Comments
 (0)