Skip to content

Commit 6e2b679

Browse files
author
Xian Wu
committed
formatting
1 parent 886b673 commit 6e2b679

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

crates/chat-cli/src/cli/chat/cli/profile.rs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,17 +254,21 @@ impl AgentSubcommand {
254254
sel
255255
},
256256
// Ctrl‑C -> Err(Interrupted)
257-
Err(dialoguer::Error::IO(ref e)) if e.kind() == std::io::ErrorKind::Interrupted => return Ok(ChatState::PromptUser {
258-
skip_printing_tools: true,
259-
}),
257+
Err(dialoguer::Error::IO(ref e)) if e.kind() == std::io::ErrorKind::Interrupted => {
258+
return Ok(ChatState::PromptUser {
259+
skip_printing_tools: true,
260+
});
261+
},
260262
Err(e) => return Err(ChatError::Custom(format!("Failed to get scope selection: {e}").into())),
261263
};
262264

263265
let scope_selection = match scope_selection {
264266
Some(selection) => selection,
265-
None => return Ok(ChatState::PromptUser {
266-
skip_printing_tools: true,
267-
}),
267+
None => {
268+
return Ok(ChatState::PromptUser {
269+
skip_printing_tools: true,
270+
});
271+
},
268272
};
269273

270274
let is_global = scope_selection == 1;

0 commit comments

Comments
 (0)