mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
all: Run gofumpt -l -w .
This commit is contained in:
@@ -118,7 +118,7 @@ func (ns *Namespace) HMAC(h any, k any, m any, e ...any) (string, error) {
|
||||
return "", err
|
||||
}
|
||||
|
||||
var encoding = "hex"
|
||||
encoding := "hex"
|
||||
if len(e) > 0 && e[0] != nil {
|
||||
encoding, err = cast.ToStringE(e[0])
|
||||
if err != nil {
|
||||
@@ -134,5 +134,4 @@ func (ns *Namespace) HMAC(h any, k any, m any, e ...any) (string, error) {
|
||||
default:
|
||||
return "", fmt.Errorf("%q is not a supported encoding method", encoding)
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user