Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-03-23 11:45:18 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-03-23 11:45:18 +0300
commit6ff2e1dbe7f84c14f7a15b86db0990991eb3a906 (patch)
tree5247edaa661ac0464b7aba947209dd559f4de9f9 /helpers
parentfaf2e50685d6d58399d5659faf9e0d413ce97d8a (diff)
helpers: Remove the else in MakePathSanitized
Diffstat (limited to 'helpers')
-rw-r--r--helpers/path.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/helpers/path.go b/helpers/path.go
index 1ac5a87d8..69f10880e 100644
--- a/helpers/path.go
+++ b/helpers/path.go
@@ -81,9 +81,8 @@ func MakePath(s string) string {
func MakePathSanitized(s string) string {
if viper.GetBool("DisablePathToLower") {
return MakePath(s)
- } else {
- return strings.ToLower(MakePath(s))
}
+ return strings.ToLower(MakePath(s))
}
func MakeTitle(inpath string) string {