helpers: Remove the else in MakePathSanitized

This commit is contained in:
Bjørn Erik Pedersen 2016-03-23 09:45:18 +01:00
parent faf2e50685
commit 6ff2e1dbe7

View file

@ -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 {