summaryrefslogtreecommitdiffstats
path: root/helpers/path.go
diff options
context:
space:
mode:
authorbogem <albertnigma@gmail.com>2016-11-21 23:00:44 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-11-23 09:13:00 +0100
commite81c06c3f0a6f9a960d91b31960e48a807112655 (patch)
tree21d771cf673370736111ba48f646c093563353d7 /helpers/path.go
parent647540d0ef9819c35819715f1f35198f05e5409e (diff)
helpers: Rename WalkRootTooShortError to ErrWalkRootTooShort
Fix golint warning: helpers/path.go:473:5: error var WalkRootTooShortError should have name of the form ErrFoo See #2014
Diffstat (limited to 'helpers/path.go')
-rw-r--r--helpers/path.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers/path.go b/helpers/path.go
index 68a72b71a..8dc5f9324 100644
--- a/helpers/path.go
+++ b/helpers/path.go
@@ -470,7 +470,7 @@ func FindCWD() (string, error) {
return path, nil
}
-var WalkRootTooShortError = errors.New("Path too short. Stop walking.")
+var ErrWalkRootTooShort = errors.New("Path too short. Stop walking.")
// SymbolicWalk is like filepath.Walk, but it supports the root being a
// symbolic link. It will still not follow symbolic links deeper down in
@@ -479,7 +479,7 @@ func SymbolicWalk(fs afero.Fs, root string, walker filepath.WalkFunc) error {
// Sanity check
if len(root) < 4 {
- return WalkRootTooShortError
+ return ErrWalkRootTooShort
}
// Handle the root first