From 93c3e6dec872600e6f19827751adad811ba1045e Mon Sep 17 00:00:00 2001 From: strawberry Date: Mon, 22 Apr 2024 01:44:22 -0400 Subject: [PATCH] forgor is_err check too Signed-off-by: strawberry --- src/api/client_server/alias.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/api/client_server/alias.rs b/src/api/client_server/alias.rs index c71b2a82..550cb656 100644 --- a/src/api/client_server/alias.rs +++ b/src/api/client_server/alias.rs @@ -151,12 +151,7 @@ pub(crate) async fn get_alias_helper( ); } - if response.as_ref().is_ok_and(|resp| resp.servers.is_empty()) { - debug_warn!( - "Server {} responded with room aliases, but was empty? Response: {response:?}", - room_alias.server_name() - ); - + if response.as_ref().is_ok_and(|resp| resp.servers.is_empty()) || response.as_ref().is_err() { if let Some(servers) = servers { for server in servers { response = services()