src: matrix: Remove unneeded return statements

This commit is contained in:
mirsal committed 2026-09-16 11:24:15 +00:00
1 parent 9aee5ab2a5
commit 982fb7e091
1 file changed
+3 -3
+3 -3
View File
@@ -88,14 +88,14 @@ async fn send_to_room(
info!("Posting to room {}", room.room_id());
room.send(RoomMessageEventContent::text_html(msg.clone(), msg)).await?;
return Ok(());
Ok(())
},
Err(e) => {
error!("Failed to join room {e:?}");
return Err(e.into());
Err(e.into())
}
}
};
}
async fn login(