mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
lib/osutil: Fix lint warning on error formatting (fixes #3760)
This commit is contained in:
parent
724c354d62
commit
9abb7b71a9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user