mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-03 04:02:38 +00:00
Use fmt.Errorf to make Golint happy
This commit is contained in:
@@ -286,7 +286,7 @@ func toPages(seq interface{}) (Pages, error) {
|
||||
case PageGroup:
|
||||
return (seq.(PageGroup)).Pages, nil
|
||||
default:
|
||||
return nil, errors.New(fmt.Sprintf("unsupported type in paginate, got %T", seq))
|
||||
return nil, fmt.Errorf("unsupported type in paginate, got %T", seq)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user