mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-03 12:09:09 +02:00
[client] Name the reader storedConfigAtPath actually calls
The purity note still said profilemanager.GetConfig, which the rename two commits later turned into GetExistingConfig. Reported by cubic-dev-ai on PR #7398.
This commit is contained in:
@@ -1166,9 +1166,9 @@ func (s *Server) storedLoginConfig(activeProf *profilemanager.ActiveProfileState
|
|||||||
// storedConfigAtPath reads a profile config file, yielding nil when it does not
|
// storedConfigAtPath reads a profile config file, yielding nil when it does not
|
||||||
// exist yet.
|
// exist yet.
|
||||||
//
|
//
|
||||||
// Reading it has no side effect: profilemanager.GetConfig does not write, so a
|
// Reading it has no side effect: profilemanager.GetExistingConfig does not
|
||||||
// request that the gates go on to refuse leaves the profile file as it found
|
// write, so a request that the gates go on to refuse leaves the profile file as
|
||||||
// it.
|
// it found it.
|
||||||
func (s *Server) storedConfigAtPath(path string) (*profilemanager.Config, error) {
|
func (s *Server) storedConfigAtPath(path string) (*profilemanager.Config, error) {
|
||||||
if _, err := os.Stat(path); err != nil {
|
if _, err := os.Stat(path); err != nil {
|
||||||
if os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user