修复警告

This commit is contained in:
xintaofei
2026-03-19 21:33:21 +08:00
parent f6fd3da401
commit 2712bd1f91
2 changed files with 30 additions and 46 deletions

View File

@@ -159,7 +159,7 @@ async fn build_agent(
// instead of appending to the previous one.
if runtime_env
.get("OPENCLAW_RESET_SESSION")
.map_or(false, |v| v == "1")
.is_some_and(|v| v == "1")
{
parts.push("--reset-session".into());
}