mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
@@ -112,9 +112,10 @@ func (ns *Namespace) Unmarshal(args ...any) (any, error) {
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("type %T not supported", data)
|
||||
}
|
||||
dataStr = strings.TrimSpace(dataStr)
|
||||
|
||||
if dataStr == "" {
|
||||
return nil, errors.New("no data to transform")
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
key := hashing.MD5FromStringHexEncoded(dataStr)
|
||||
|
Reference in New Issue
Block a user