codex: fix remaining CI lint on PR #18161

This commit is contained in:
rreichel3-oai
2026-05-11 19:07:37 -04:00
parent 439317fabc
commit 765b6aca04
2 changed files with 3 additions and 8 deletions
@@ -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:?}.",
)));
}
+1 -3
View File
@@ -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!(