mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-08 23:08:27 +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"
|
"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
|
// Try to keep this entire operation atomic-like. We shouldn't be doing this
|
||||||
// often enough that there is any contention on this lock.
|
// often enough that there is any contention on this lock.
|
||||||
@ -123,7 +123,7 @@ func getHomeDir() (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if home == "" {
|
if home == "" {
|
||||||
return "", ErrNoHome
|
return "", errNoHome
|
||||||
}
|
}
|
||||||
|
|
||||||
return home, nil
|
return home, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user