mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-12 17:59:06 +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
|
||||
// exist yet.
|
||||
//
|
||||
// Reading it has no side effect: profilemanager.GetConfig does not write, so a
|
||||
// request that the gates go on to refuse leaves the profile file as it found
|
||||
// it.
|
||||
// Reading it has no side effect: profilemanager.GetExistingConfig does not
|
||||
// write, so a request that the gates go on to refuse leaves the profile file as
|
||||
// it found it.
|
||||
func (s *Server) storedConfigAtPath(path string) (*profilemanager.Config, error) {
|
||||
if _, err := os.Stat(path); err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
|
||||
Reference in New Issue
Block a user