Change summary
crates/recent_projects/src/remote_servers.rs | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
Detailed changes
@@ -1656,9 +1656,7 @@ impl RemoteServerProjects {
fn delete_ssh_server(&mut self, server: SshServerIndex, cx: &mut Context<Self>) {
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);
}
});