This commit is contained in:
Richard Nordström 2024-09-01 20:25:40 +02:00
parent 6277cf24c6
commit 7eca34a7b2
No known key found for this signature in database
GPG Key ID: ACCB352EC60AF27C
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ func (l *LogoutSession) load(ctx context.Context, profileName string, persistent
return nil return nil
} }
func (l *LogoutSession) getConfigSetionMap() (map[string]string, error) { func (l *LogoutSession) getConfigSectionMap() (map[string]string, error) {
section, err := l.File.GetSection(l.Profile) section, err := l.File.GetSection(l.Profile)
if err != nil { if err != nil {
return map[string]string{}, fmt.Errorf("profile does not exist in config file: %w", err) return map[string]string{}, fmt.Errorf("profile does not exist in config file: %w", err)
@ -95,7 +95,7 @@ func newLogoutCommand(persistentAuth *auth.PersistentAuth) *cobra.Command {
defer persistentAuth.Close() defer persistentAuth.Close()
LogoutSession := &LogoutSession{} LogoutSession := &LogoutSession{}
LogoutSession.load(ctx, profileName, persistentAuth) LogoutSession.load(ctx, profileName, persistentAuth)
configSectionMap, err := LogoutSession.getConfigSetionMap() configSectionMap, err := LogoutSession.getConfigSectionMap()
if err != nil { if err != nil {
return err return err
} }