mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-09 04:27:48 -04:00
helpers: Remove the else in MakePathSanitized
This commit is contained in:
parent
faf2e50685
commit
6ff2e1dbe7
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user