Don't unwrap the option

This commit is contained in:
Dániel Buga 2022-09-11 20:17:22 +02:00
parent 9565dc148e
commit 0c0a37ab1c
1 changed files with 3 additions and 4 deletions

View File

@ -387,11 +387,10 @@ fn flatpak_should_use_host_terminal() -> bool {
}
// Ensure flatpak-spawn --host can execute a basic command
let host_available = Command::new("flatpak-spawn")
Command::new("flatpak-spawn")
.arg("--host")
.arg("true")
.status()
.unwrap();
host_available.success()
.map(|status| status.success())
.unwrap_or(false)
}