hugo

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

git clone git://git.shimmy1996.com/hugo.git
commit 6a98d269b54a09d53c15965b9ffea802025d3003
parent c6f4b09f653644b9ed9186c6fdefa8e1b571dcc1
Author: Austin Ziegler <austin@zieglers.ca>
Date:   Tue,  9 Dec 2014 20:28:27 -0500

Hygiene: Reduce copy-pasted code.

Diffstat:
Mtpl/template.go | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/tpl/template.go b/tpl/template.go
@@ -204,7 +204,6 @@ func compareGetFloat(a interface{}, b interface{}) (float64, float64) {
 }
 
 func Intersect(l1, l2 interface{}) (interface{}, error) {
-
 	if l1 == nil || l2 == nil {
 		return make([]interface{}, 0), nil
 	}
@@ -305,7 +304,6 @@ func indirect(v reflect.Value) (rv reflect.Value, isNil bool) {
 // First is exposed to templates, to iterate over the first N items in a
 // rangeable list.
 func First(limit interface{}, seq interface{}) (interface{}, error) {
-
 	limitv, err := cast.ToIntE(limit)
 
 	if err != nil {
@@ -335,7 +333,7 @@ func First(limit interface{}, seq interface{}) (interface{}, error) {
 }
 
 var (
-	zero reflect.Value
+	zero      reflect.Value
 	errorType = reflect.TypeOf((*error)(nil)).Elem()
 )