Skip to content

Commit

Permalink
Remove leftover unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Piturnah authored and David Peter committed Sep 1, 2023
1 parent 33a8941 commit 72e1a40
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,10 @@ impl<'b> Controller<'b> {
clircle::Identifier::stdout()
};

//let writer = output_type.handle()?;
let mut writer = output_buffer.map_or_else(
|| OutputHandle::IoWrite(output_type.handle().unwrap()),
|buf| OutputHandle::FmtWrite(buf),
);
let mut writer = match output_buffer {
Some(buf) => OutputHandle::FmtWrite(buf),
None => OutputHandle::IoWrite(output_type.handle()?),
};
let mut no_errors: bool = true;
let stderr = io::stderr();

Expand Down

0 comments on commit 72e1a40

Please sign in to comment.