Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspustina committed Jan 8, 2020
1 parent bd32e87 commit 739511c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bin/usereport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ fn generate_report(opt: &Opt, config: &Config, profile_name: &str) -> Result<(),
.and_then(|p| Ok(config.commands_for_profile(p)))?;
let command_results = run_commands(opt, commands)?;
let mut report = Report::new(&command_results).with_context(|_| "failed to create report")?;
if let Some(x) = hostinfo_results.as_ref() { report.set_hostinfo_results(x) }
if let Some(x) = hostinfo_results.as_ref() {
report.set_hostinfo_results(x)
}

render(&report, &opt.output_type).with_context(|_| "failed to render report")?;

Expand Down

0 comments on commit 739511c

Please sign in to comment.