lib/osutil: Fix lint warning on error formatting (fixes #3760)

This commit is contained in:
Jakob Borg 2016-11-24 11:19:43 +01:00
parent 724c354d62
commit 9abb7b71a9

View File

@ -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