shithub: hugo

Download patch

ref: befb54da46659e6678fcd2504cbe5c5fbb9e62b8
parent: bef34597f475762737ea506197c6f249457c18a6
author: bep <[email protected]>
date: Mon May 25 08:54:12 EDT 2015

Apply gofmt -s

--- a/tpl/template_funcs_test.go
+++ b/tpl/template_funcs_test.go
@@ -1225,4 +1225,3 @@
 		}
 	}
 }
-
--- a/transform/absurlreplacer.go
+++ b/transform/absurlreplacer.go
@@ -49,9 +49,9 @@
 // - the matches array above must be expanded.
 // - the prefix must with the current logic end with '='
 var prefixes = []*prefix{
-	&prefix{r: []rune{'s', 'r', 'c', '='}, f: checkCandidateBase},
-	&prefix{r: []rune{'h', 'r', 'e', 'f', '='}, f: checkCandidateBase},
-	&prefix{r: []rune{'s', 'r', 'c', 's', 'e', 't', '='}, f: checkCandidateSrcset},
+	{r: []rune{'s', 'r', 'c', '='}, f: checkCandidateBase},
+	{r: []rune{'h', 'r', 'e', 'f', '='}, f: checkCandidateBase},
+	{r: []rune{'s', 'r', 'c', 's', 'e', 't', '='}, f: checkCandidateSrcset},
 }
 
 type absURLMatcher struct {