simplify error handling

This commit is contained in:
Jonas Kruckenberg 2022-11-13 21:19:00 +01:00
parent e431dc89a8
commit bd652c956f
8 changed files with 94 additions and 147 deletions

View file

@ -10,7 +10,7 @@ pub async fn get_name() -> anyhow::Result<()> {
}
pub async fn get_version() -> anyhow::Result<()> {
let version = app::get_version().await;
let version = app::get_version().await?;
ensure!(version.major == 0);
ensure!(version.minor == 0);