hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 6ff2e1dbe7f84c14f7a15b86db0990991eb3a906
parent faf2e50685d6d58399d5659faf9e0d413ce97d8a
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Wed, 23 Mar 2016 09:45:18 +0100

helpers: Remove the else in MakePathSanitized

Diffstat:
Mhelpers/path.go | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git 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 {