mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 12:14:49 +00:00
helpers: Remove the else in MakePathSanitized
This commit is contained in:
1 parent
faf2e50685
commit
6ff2e1dbe7
1 file changed
+1
-2
+1
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user