Skip to content

Commit ecd4ae5

Browse files
Add comment explaining hasWorkspace branch in ResolveConfigType
1 parent fecc25a commit ecd4ae5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

libs/auth/config_type.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ func ResolveConfigType(cfg *config.Config) config.ConfigType {
4141
return configType
4242
}
4343

44+
// The WorkspaceConfig return is a no-op when configType is already
45+
// WorkspaceConfig, but is needed for InvalidConfig (legacy IsUnifiedHost
46+
// profiles where the SDK dropped the UnifiedHost case in v0.126.0).
4447
if cfg.WorkspaceID != "" && cfg.WorkspaceID != WorkspaceIDNone {
4548
return config.WorkspaceConfig
4649
}

0 commit comments

Comments
 (0)