mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 17:08:07 +00:00
Format go code.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
package template
|
||||
|
||||
import (
|
||||
"crypto/md5"
|
||||
"errors"
|
||||
"fmt"
|
||||
"html/template"
|
||||
"io"
|
||||
"crypto/md5"
|
||||
"strings"
|
||||
|
||||
"github.com/GeertJohan/go.rice"
|
||||
@@ -99,7 +99,7 @@ func init() {
|
||||
h := md5.New()
|
||||
io.WriteString(h, mainjs)
|
||||
jshash := fmt.Sprintf("%x", h.Sum(nil))
|
||||
base = strings.Replace(base, "main.js", "main.js?h=" + jshash, 1)
|
||||
base = strings.Replace(base, "main.js", "main.js?h="+jshash, 1)
|
||||
|
||||
// extract the base form template as a string
|
||||
form, err := box.String("form.html")
|
||||
|
Reference in New Issue
Block a user