cli/cob: Remove check of `BrokenPipe`

The swallowing of `BrokenPipe` is processed further down the stack,
so this case is no longer needed.
This commit is contained in:
Lorenz Leutgeb 2026-04-14 22:28:58 +02:00 committed by Lorenz Leutgeb
parent 56625a42f7
commit 553a3ebd0a
1 changed files with 1 additions and 8 deletions

View File

@ -156,14 +156,7 @@ pub fn run(args: Args, ctx: impl term::Context) -> anyhow::Result<()> {
..
} => {
let repo = storage.repository(repo)?;
if let Err(e) = show(objects, &repo, type_name.into(), &profile) {
if let Some(err) = e.downcast_ref::<std::io::Error>() {
if err.kind() == std::io::ErrorKind::BrokenPipe {
return Ok(());
}
}
return Err(e);
}
show(objects, &repo, type_name.into(), &profile)?;
}
Update(args::Update {
repo,