From: bep Date: Tue, 21 Apr 2015 19:13:28 +0000 (+0200) Subject: Use fmt.Errorf to make Golint happy X-Git-Tag: v0.14~114 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=be8e6d4f;p=brevno-suite%2Fhugo Use fmt.Errorf to make Golint happy --- diff --git a/hugolib/pagination.go b/hugolib/pagination.go index f5380a33..d5d409a3 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) } }