fmt: single-line if condition in mcp bearer rewriter
ci / gates (push) Successful in 6s
ci / frontend (push) Successful in 37s
ci / rust (push) Successful in 3m15s
ci / e2e (push) Skipped
ci / publish (push) Successful in 4m12s

This commit is contained in:
Omar Sobh
2026-07-18 14:48:29 -07:00
parent fd3ebb628a
commit 6504ed6062
+1 -4
View File
@@ -645,10 +645,7 @@ fn prewrite_daemon_config_with_risk(
} }
} }
} }
if in_mcp_clawmates if in_mcp_clawmates && trimmed.starts_with("headers") && trimmed.contains("Authorization") {
&& trimmed.starts_with("headers")
&& trimmed.contains("Authorization")
{
if let Some(bearer) = mcp_bearer_override { if let Some(bearer) = mcp_bearer_override {
out.push_str(&format!( out.push_str(&format!(
"headers = {{ Authorization = \"Bearer {bearer}\" }}\n" "headers = {{ Authorization = \"Bearer {bearer}\" }}\n"