agent-ctl: Simplify main

Make the `main()` function simpler.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt 2021-11-22 14:21:41 +00:00
parent c7349d0bf1
commit 46e459584d

View File

@ -324,11 +324,8 @@ fn real_main() -> Result<()> {
} }
fn main() { fn main() {
match real_main() { if let Err(e) = real_main() {
Err(e) => { eprintln!("ERROR: {}", e);
eprintln!("ERROR: {}", e); exit(1);
exit(1); }
}
_ => (),
};
} }