hugolib, output: Gofmt
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 27 Mar 2017 23:18:15 +0000 (01:18 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 27 Mar 2017 23:18:15 +0000 (01:18 +0200)
hugolib/site.go
output/layout_base.go

index 4aa68aacffece403222e0471786d9396a22493d3..f8a57dfa217fcb07f32629b02196bde61bb0ef97 100644 (file)
@@ -718,7 +718,7 @@ func (s *Site) reProcess(events []fsnotify.Event) (whatChanged, error) {
 
        }
 
-       for shortcode, _ := range shortcodesChanged {
+       for shortcode := range shortcodesChanged {
                // There are certain scenarios that, when a shortcode changes,
                // it isn't sufficient to just rerender the already parsed shortcode.
                // One example is if the user adds a new shortcode to the content file first,
index 47d0c3d48fb205744de86b03f7b5cfa43db3b58a..2bb89c20dd4f63140e51ad7a346e1d9045fb9ea1 100644 (file)
@@ -137,10 +137,10 @@ func CreateTemplateNames(d TemplateLookupDescriptor) (TemplateNames, error) {
                // in the theme's layouts folder.
                // Also note that the <current-path> may be both the project's layout folder and the theme's.
                pairsToCheck := [][]string{
-                       []string{baseTemplatedDir, currBaseFilename},
-                       []string{baseTemplatedDir, baseFilename},
-                       []string{"_default", currBaseFilename},
-                       []string{"_default", baseFilename},
+                       {baseTemplatedDir, currBaseFilename},
+                       {baseTemplatedDir, baseFilename},
+                       {"_default", currBaseFilename},
+                       {"_default", baseFilename},
                }
 
        Loop: