hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit be8e6d4f1fbde728c0e2ede438e1827aba73fdd2
parent be01f8430ec009d5a375ea384aa4893683e8e499
Author: bep <bjorn.erik.pedersen@gmail.com>
Date:   Tue, 21 Apr 2015 21:13:28 +0200

Use fmt.Errorf to make Golint happy

Diffstat:
Mhugolib/pagination.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)
 	}
 }