refactor(cli): remove duplicate agent mode check in run()
The same if-let block checking for agent mode was duplicated, causing dead code on the second check. Removed the duplicate. Agent: fowler
This commit is contained in:
@@ -444,21 +444,6 @@ pub async fn run() -> Result<()> {
|
|||||||
.await;
|
.await;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if agent mode is enabled
|
|
||||||
if let Some(agent_name) = &cli.agent {
|
|
||||||
return run_agent_mode(
|
|
||||||
agent_name,
|
|
||||||
cli.workspace.clone(),
|
|
||||||
cli.config.as_deref(),
|
|
||||||
cli.quiet,
|
|
||||||
cli.new_session,
|
|
||||||
cli.task.clone(),
|
|
||||||
cli.chrome_headless,
|
|
||||||
cli.safari,
|
|
||||||
)
|
|
||||||
.await;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Only initialize logging if not in retro mode
|
// Only initialize logging if not in retro mode
|
||||||
if !cli.machine {
|
if !cli.machine {
|
||||||
// Initialize logging with filtering
|
// Initialize logging with filtering
|
||||||
|
|||||||
Reference in New Issue
Block a user