1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 04:03:29 +00:00

Update apps/desktop/desktop_native/proxy/src/main.rs

Co-authored-by: Daniel García <dani-garcia@users.noreply.github.com>
This commit is contained in:
Bernd Schoolmann
2025-05-30 14:38:54 +02:00
committed by GitHub
parent 892c8a4303
commit a37f3a4f61

View File

@@ -56,11 +56,9 @@ async fn main() {
let should_foreground = windows::allow_foreground();
let sock_paths = desktop_core::ipc::all_paths("bitwarden");
let sock_path = *sock_paths
.iter()
.filter(|p| p.exists())
.collect::<Vec<_>>()
.first()
let sock_path = sock_paths
.into_iter()
.find(|p| p.exists())
.unwrap_or_else(|| {
error!("No valid socket path found.");
std::process::exit(1);