From 9abb7b71a99c35b48986fc40336fd20285555abf Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Thu, 24 Nov 2016 11:19:43 +0100 Subject: [PATCH] lib/osutil: Fix lint warning on error formatting (fixes #3760) --- lib/osutil/osutil.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/osutil/osutil.go b/lib/osutil/osutil.go index 11193e08..10d69dff 100644 --- a/lib/osutil/osutil.go +++ b/lib/osutil/osutil.go @@ -20,7 +20,7 @@ import ( "github.com/syncthing/syncthing/lib/sync" ) -var ErrNoHome = errors.New("No home directory found - set $HOME (or the platform equivalent).") +var errNoHome = errors.New("no home directory found - set $HOME (or the platform equivalent)") // Try to keep this entire operation atomic-like. We shouldn't be doing this // often enough that there is any contention on this lock. @@ -123,7 +123,7 @@ func getHomeDir() (string, error) { } if home == "" { - return "", ErrNoHome + return "", errNoHome } return home, nil