aboutsummaryrefslogtreecommitdiffhomepage
path: root/langs/config.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 /langs/config.go
parent32471b57bde51c55a15dbf1db75d6e5f7232c347 (diff)
downloadhugo-d90e37e0c6e812f9913bf256c9c81aa05b7a08aa.tar.gz
hugo-d90e37e0c6e812f9913bf256c9c81aa05b7a08aa.zip
all: Format code with gofumpt
See https://github.com/mvdan/gofumpt
Diffstat (limited to 'langs/config.go')
-rw-r--r--langs/config.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/langs/config.go b/langs/config.go
index 3afd15df0..3b1da89ec 100644
--- a/langs/config.go
+++ b/langs/config.go
@@ -35,7 +35,6 @@ type LanguagesConfig struct {
}
func LoadLanguageSettings(cfg config.Provider, oldLangs Languages) (c LanguagesConfig, err error) {
-
defaultLang := strings.ToLower(cfg.GetString("defaultContentLanguage"))
if defaultLang == "" {
defaultLang = "en"
@@ -160,7 +159,6 @@ func LoadLanguageSettings(cfg config.Provider, oldLangs Languages) (c LanguagesC
return c, errors.New("baseURL must be set on all or none of the languages")
}
}
-
}
return c, nil
@@ -172,7 +170,6 @@ func toSortedLanguages(cfg config.Provider, l map[string]interface{}) (Languages
for lang, langConf := range l {
langsMap, err := maps.ToStringMapE(langConf)
-
if err != nil {
return nil, fmt.Errorf("Language config is not a map: %T", langConf)
}