Remove now superfluous lowercasing
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 24 Oct 2016 19:33:11 +0000 (21:33 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 24 Oct 2016 19:33:11 +0000 (21:33 +0200)
See #2615
See #1129

hugolib/multilingual.go
hugolib/site_test.go

index cf45e723344d5ea65f41ea15e75461ed65410015..29a2ea93ad6ad852dfc1bbc0fc43b13d0c2abaca 100644 (file)
@@ -83,7 +83,6 @@ func toSortedLanguages(l map[string]interface{}) (helpers.Languages, error) {
 
        for lang, langConf := range l {
                langsMap, err := cast.ToStringMapE(langConf)
-               helpers.ToLowerMap(langsMap)
 
                if err != nil {
                        return nil, fmt.Errorf("Language config is not a map: %T", langConf)
index 1792263e330580ab6c6d02871795704ba051963f..22c61582847f95fe678a3b9440b6e6b0894837a6 100644 (file)
@@ -337,9 +337,8 @@ func doTestShouldAlwaysHaveUglyURLs(t *testing.T, uglyURLs bool) {
        viper.Set("disableRSS", false)
        viper.Set("rssURI", "index.xml")
        viper.Set("blackfriday",
-               // TODO(bep) https://github.com/spf13/viper/issues/261
                map[string]interface{}{
-                       strings.ToLower("plainIDAnchors"): true})
+                       "plainIDAnchors": true})
 
        viper.Set("uglyURLs", uglyURLs)
 
@@ -965,9 +964,8 @@ func setupLinkingMockSite(t *testing.T) *Site {
        viper.Set("pluralizeListTitles", false)
        viper.Set("canonifyURLs", false)
        viper.Set("blackfriday",
-               // TODO(bep) see https://github.com/spf13/viper/issues/261
                map[string]interface{}{
-                       strings.ToLower("sourceRelativeLinksProjectFolder"): "/docs"})
+                       "sourceRelativeLinksProjectFolder": "/docs"})
 
        site := &Site{
                Source:   &source.InMemorySource{ByteSource: sources},