fmt: single-line if condition in mcp bearer rewriter
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user