From 4d39ee5d6c9a19eaf5114174456b64a72b15b103 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Mon, 9 Mar 2026 13:19:58 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20"recent=5Fprojects:=20Don't=20panic=20?= =?UTF-8?q?when=20attempting=20to=20delete=20SSH=20server=20out=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 4abeeda0b2468aeccba4f3788bfcd7b79de9496c. --- crates/recent_projects/src/remote_servers.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/recent_projects/src/remote_servers.rs b/crates/recent_projects/src/remote_servers.rs index b094ff6c5bc5499e7ed1f3e6c9e0b9331b6bb7c2..a94f7b1d57eaef8657fb0d448480f84c97ce7e70 100644 --- a/crates/recent_projects/src/remote_servers.rs +++ b/crates/recent_projects/src/remote_servers.rs @@ -1656,9 +1656,7 @@ impl RemoteServerProjects { fn delete_ssh_server(&mut self, server: SshServerIndex, cx: &mut Context) { self.update_settings_file(cx, move |setting, _| { - if let Some(connections) = setting.ssh_connections.as_mut() - && connections.get(server.0).is_some() - { + if let Some(connections) = setting.ssh_connections.as_mut() { connections.remove(server.0); } });