diff options
author | bep <bjorn.erik.pedersen@gmail.com> | 2015-04-21 21:13:28 +0200 |
---|---|---|
committer | bep <bjorn.erik.pedersen@gmail.com> | 2015-04-21 21:13:30 +0200 |
commit | be8e6d4f1fbde728c0e2ede438e1827aba73fdd2 (patch) | |
tree | 3a58ab76d7c77e2e958c2f910f3afd681ec260c8 /hugolib | |
parent | be01f8430ec009d5a375ea384aa4893683e8e499 (diff) |
Use fmt.Errorf to make Golint happy
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/pagination.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/pagination.go b/hugolib/pagination.go index f5380a337..d5d409a36 100644 --- a/hugolib/pagination.go +++ b/hugolib/pagination.go @@ -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) } } |