Fix sandbox setup clippy on non-Windows

This commit is contained in:
David Wiesen
2026-05-28 13:42:12 -07:00
parent 7e49fc51e7
commit fdadb50f64
2 changed files with 3 additions and 2 deletions

View File

@@ -50,6 +50,7 @@ mod marketplace_cmd;
mod mcp_cmd;
mod plugin_cmd;
mod remote_control_cmd;
#[cfg(target_os = "windows")]
mod sandbox_setup;
mod state_db_recovery;
#[cfg(not(windows))]

View File

@@ -63,9 +63,9 @@ pub(crate) async fn run(cmd: SandboxSetupCommand) -> anyhow::Result<()> {
pub(crate) fn parse_setup_command(
sandbox_command: &[String],
) -> anyhow::Result<Option<SandboxSetupCommand>> {
if !sandbox_command
if sandbox_command
.first()
.is_some_and(|command| command == "setup")
.is_none_or(|command| command != "setup")
{
return Ok(None);
}