diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-03-23 11:45:18 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-03-23 11:45:18 +0300 |
commit | 6ff2e1dbe7f84c14f7a15b86db0990991eb3a906 (patch) | |
tree | 5247edaa661ac0464b7aba947209dd559f4de9f9 /helpers | |
parent | faf2e50685d6d58399d5659faf9e0d413ce97d8a (diff) |
helpers: Remove the else in MakePathSanitized
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/path.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/helpers/path.go b/helpers/path.go index 1ac5a87d8..69f10880e 100644 --- a/helpers/path.go +++ b/helpers/path.go @@ -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 { |