codex: fix remaining CI lint on PR #18161

This commit is contained in:
rreichel3-oai
2026-04-16 19:56:40 -04:00
parent 7c65799934
commit 8b4867b9f5
2 changed files with 3 additions and 8 deletions
@@ -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,
};
+1 -3
View File
@@ -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!(