From be8e6d4f1fbde728c0e2ede438e1827aba73fdd2 Mon Sep 17 00:00:00 2001 From: bep Date: Tue, 21 Apr 2015 21:13:28 +0200 Subject: [PATCH] Use fmt.Errorf to make Golint happy --- hugolib/pagination.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }