commands, hugolib, parser, tpl: Use errors.New instead of fmt.Errorf

This commit is contained in:
bogem
2016-11-18 22:54:57 +01:00
committed by Bjørn Erik Pedersen
parent 1f130fd692
commit dec1706ae0
6 changed files with 18 additions and 18 deletions

View File

@@ -898,7 +898,7 @@ var ErrHasDraftAndPublished = errors.New("both draft and published parameters we
func (p *Page) update(f interface{}) error {
if f == nil {
return fmt.Errorf("no metadata found")
return errors.New("no metadata found")
}
m := f.(map[string]interface{})
// Needed for case insensitive fetching of params values