mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
codex: fix remaining CI lint on PR #18161
This commit is contained in:
@@ -1628,15 +1628,12 @@ impl CodexMessageProcessor {
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
let error = JSONRPCErrorError {
|
||||
code: INVALID_REQUEST_ERROR_CODE,
|
||||
message: 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:?}.",
|
||||
),
|
||||
data: None,
|
||||
};
|
||||
|
||||
@@ -1710,9 +1710,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