mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
@@ -49,7 +49,6 @@ type Namespace struct {
|
||||
}
|
||||
|
||||
func (ns *Namespace) Unmarshal(r resource.UnmarshableResource) (*kopenapi3.Swagger, error) {
|
||||
|
||||
key := r.Key()
|
||||
if key == "" {
|
||||
return nil, errors.New("no Key set in Resource")
|
||||
@@ -87,11 +86,9 @@ func (ns *Namespace) Unmarshal(r resource.UnmarshableResource) (*kopenapi3.Swagg
|
||||
|
||||
return s, err
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return v.(*kopenapi3.Swagger), nil
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user