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:
parent
56625a42f7
commit
553a3ebd0a
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue