Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Remove redundant `as_value().and_then()` in deprecation check (#1833)

Maximilian Roosf25e05c6a1a8
diff --git a/src/config/deprecation.rs b/src/config/deprecation.rs
index 67423d54e..8d3f09d90 100644
--- a/src/config/deprecation.rs
+++ b/src/config/deprecation.rs
@@ -687,11 +687,7 @@ pub fn find_ci_section_deprecation(content: &str) -> bool {
doc.get("ci")
.and_then(|ci| ci.as_table())
.and_then(|t| t.get("platform"))
- .is_some_and(|p| {
- p.as_str()
- .or_else(|| p.as_value().and_then(|v| v.as_str()))
- .is_some_and(|s| !s.is_empty())
- })
+ .is_some_and(|p| p.as_str().is_some_and(|s| !s.is_empty()))
}
/// Migrate `[ci]` section to `[forge]`.