mirror of https://github.com/lapce/lapce.git
Don't unwrap the option
This commit is contained in:
parent
9565dc148e
commit
0c0a37ab1c
|
@ -387,11 +387,10 @@ fn flatpak_should_use_host_terminal() -> bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure flatpak-spawn --host can execute a basic command
|
// Ensure flatpak-spawn --host can execute a basic command
|
||||||
let host_available = Command::new("flatpak-spawn")
|
Command::new("flatpak-spawn")
|
||||||
.arg("--host")
|
.arg("--host")
|
||||||
.arg("true")
|
.arg("true")
|
||||||
.status()
|
.status()
|
||||||
.unwrap();
|
.map(|status| status.success())
|
||||||
|
.unwrap_or(false)
|
||||||
host_available.success()
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue