aboutsummaryrefslogtreecommitdiffhomepage
path: root/config/commonConfig.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2020-12-02 13:23:25 +0100
committerBjørn Erik Pedersen <[email protected]>2020-12-03 13:12:58 +0100
commitd90e37e0c6e812f9913bf256c9c81aa05b7a08aa (patch)
tree7b1b14464eefec1188ca2eed53c64e4823453cc9 /config/commonConfig.go
parent32471b57bde51c55a15dbf1db75d6e5f7232c347 (diff)
downloadhugo-d90e37e0c6e812f9913bf256c9c81aa05b7a08aa.tar.gz
hugo-d90e37e0c6e812f9913bf256c9c81aa05b7a08aa.zip
all: Format code with gofumpt
See https://github.com/mvdan/gofumpt
Diffstat (limited to 'config/commonConfig.go')
-rw-r--r--config/commonConfig.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/config/commonConfig.go b/config/commonConfig.go
index 9b4edfd90..260ebe73e 100644
--- a/config/commonConfig.go
+++ b/config/commonConfig.go
@@ -14,12 +14,12 @@
package config
import (
- "github.com/pkg/errors"
-
"sort"
"strings"
"sync"
+ "github.com/pkg/errors"
+
"github.com/gohugoio/hugo/common/types"
"github.com/gobwas/glob"
@@ -88,7 +88,6 @@ type Sitemap struct {
}
func DecodeSitemap(prototype Sitemap, input map[string]interface{}) Sitemap {
-
for key, value := range input {
switch key {
case "changefreq":
@@ -116,7 +115,6 @@ type Server struct {
}
func (s *Server) init() {
-
s.compiledInit.Do(func() {
for _, h := range s.Headers {
s.compiledHeaders = append(s.compiledHeaders, glob.MustCompile(h.For))
@@ -150,7 +148,6 @@ func (s *Server) MatchHeaders(pattern string) []types.KeyValueStr {
})
return matches
-
}
func (s *Server) MatchRedirect(pattern string) Redirect {
@@ -176,7 +173,6 @@ func (s *Server) MatchRedirect(pattern string) Redirect {
}
return Redirect{}
-
}
type Headers struct {