From 7eca34a7b25f835ac184cd4784aba07517bcfc16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Nordstr=C3=B6m?= Date: Sun, 1 Sep 2024 20:25:40 +0200 Subject: [PATCH] fix typo --- cmd/auth/logout.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/auth/logout.go b/cmd/auth/logout.go index 506c97ee2..05a1843a7 100644 --- a/cmd/auth/logout.go +++ b/cmd/auth/logout.go @@ -34,7 +34,7 @@ func (l *LogoutSession) load(ctx context.Context, profileName string, persistent 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) if err != nil { 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() LogoutSession := &LogoutSession{} LogoutSession.load(ctx, profileName, persistentAuth) - configSectionMap, err := LogoutSession.getConfigSetionMap() + configSectionMap, err := LogoutSession.getConfigSectionMap() if err != nil { return err }