mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-23 21:53:09 +02:00
all: Apply staticcheck recommendations
This commit is contained in:
@@ -41,6 +41,9 @@ func (ns *Namespace) Remarshal(format string, data interface{}) (string, error)
|
||||
}
|
||||
|
||||
meta, err := metadecoders.Default.UnmarshalToMap([]byte(from), fromFormat)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
var result bytes.Buffer
|
||||
if err := parser.InterfaceToConfig(meta, mark, &result); err != nil {
|
||||
|
Reference in New Issue
Block a user