From: Bjørn Erik Pedersen Date: Sat, 30 Jul 2016 18:07:35 +0000 (+0200) Subject: Adjust the sanity check to path length 4 X-Git-Tag: v0.17~201 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=15b66935419089ce465f5d4d6ac159a7aaa76cb4;p=brevno-suite%2Fhugo Adjust the sanity check to path length 4 --- diff --git a/helpers/path.go b/helpers/path.go index 91017d51..3c0d530f 100644 --- a/helpers/path.go +++ b/helpers/path.go @@ -468,7 +468,7 @@ func FindCWD() (string, error) { func SymbolicWalk(fs afero.Fs, root string, walker filepath.WalkFunc) error { // Sanity check - if len(root) < 5 { + if len(root) < 4 { return fmt.Errorf("Path to short, cannot walk the root: %s", root) }