mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Use fmt.Errorf to make Golint happy
This commit is contained in:
parent
be01f8430e
commit
be8e6d4f1f
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ func toPages(seq interface{}) (Pages, error) {
|
||||||
case PageGroup:
|
case PageGroup:
|
||||||
return (seq.(PageGroup)).Pages, nil
|
return (seq.(PageGroup)).Pages, nil
|
||||||
default:
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue