shithub: hugo

Download patch

ref: 6ff2e1dbe7f84c14f7a15b86db0990991eb3a906
parent: faf2e50685d6d58399d5659faf9e0d413ce97d8a
author: Bjørn Erik Pedersen <[email protected]>
date: Wed Mar 23 05:45:18 EDT 2016

helpers: Remove the else in MakePathSanitized

--- a/helpers/path.go
+++ b/helpers/path.go
@@ -81,9 +81,8 @@
 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 {