shithub: hugo

Download patch

ref: be8e6d4f1fbde728c0e2ede438e1827aba73fdd2
parent: be01f8430ec009d5a375ea384aa4893683e8e499
author: bep <[email protected]>
date: Tue Apr 21 17:13:28 EDT 2015

Use fmt.Errorf to make Golint happy

--- a/hugolib/pagination.go
+++ b/hugolib/pagination.go
@@ -286,7 +286,7 @@
 	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)
 	}
 }