mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-27 07:48:55 +00:00
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:
parent
c7349d0bf1
commit
46e459584d
@ -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);
|
}
|
||||||
}
|
|
||||||
_ => (),
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user