Address stdin prompt review feedback

Remove an explicit return in the empty-stdin branch without changing behavior.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Joe Liccini
2026-03-27 18:33:45 -04:00
parent 87746dbe7c
commit 2b2d4b2a39

View File

@@ -1575,16 +1575,16 @@ fn read_prompt_from_stdin(behavior: StdinPromptBehavior) -> Option<String> {
};
if buffer.trim().is_empty() {
return match behavior {
match behavior {
StdinPromptBehavior::OptionalAppend => None,
StdinPromptBehavior::RequiredIfPiped | StdinPromptBehavior::Forced => {
eprintln!("No prompt provided via stdin.");
std::process::exit(1);
}
};
}
} else {
Some(buffer)
}
Some(buffer)
}
fn prompt_with_stdin_context(prompt: &str, stdin_text: &str) -> String {