helpers: Remove the else in MakePathSanitized
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 23 Mar 2016 08:45:18 +0000 (09:45 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 23 Mar 2016 08:45:18 +0000 (09:45 +0100)
helpers/path.go

index 1ac5a87d8d307959a24e5d99b4c5a8e4f74a3c8e..69f10880e174370fa84e14b30bc3a003a563f94c 100644 (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 {