mirror of
https://github.com/openai/codex.git
synced 2026-11-05 20:10:33 +00:00
codex: fix remaining CI lint on PR #18161
This commit is contained in:
@@ -569,13 +569,10 @@ impl AccountRequestProcessor {
|
||||
}
|
||||
|
||||
if let Some(expected_workspaces) = self.config.forced_chatgpt_workspace_id.as_deref()
|
||||
&& !expected_workspaces
|
||||
.iter()
|
||||
.any(|expected_workspace| chatgpt_account_id == *expected_workspace)
|
||||
&& !expected_workspaces.contains(&chatgpt_account_id)
|
||||
{
|
||||
return Err(invalid_request(format!(
|
||||
"External auth must use one of workspace(s) {:?}, but received {chatgpt_account_id:?}.",
|
||||
expected_workspaces
|
||||
"External auth must use one of workspace(s) {expected_workspaces:?}, but received {chatgpt_account_id:?}.",
|
||||
)));
|
||||
}
|
||||
|
||||
|
||||
@@ -1841,9 +1841,7 @@ impl AuthManager {
|
||||
)));
|
||||
};
|
||||
if let Some(expected_workspace_ids) = forced_chatgpt_workspace_id.as_deref()
|
||||
&& !expected_workspace_ids
|
||||
.iter()
|
||||
.any(|expected| chatgpt_metadata.account_id == *expected)
|
||||
&& !expected_workspace_ids.contains(&chatgpt_metadata.account_id)
|
||||
{
|
||||
return Err(RefreshTokenError::Transient(std::io::Error::other(
|
||||
format!(
|
||||
|
||||
Reference in New Issue
Block a user