style: Don't return Allow in an else block

This commit is contained in:
timedout committed 2026-10-02 18:10:17 +01:00
1 parent 63294f8775
commit 495eeedd24
2 files changed
+7 -6

No files matched your search

+4 -4
View File
@@ -119,14 +119,14 @@ impl super::Service {
.check_msc4494_mutual_room(sender_user, recipient_user)
.await
{
FilterLevel::Block
} else {
FilterLevel::Allow
return FilterLevel::Block;
}
FilterLevel::Allow
}
}
/// Checks that sender and recipient share at least one rule that has a join
/// Checks that sender and recipient share at least one room that has a join
/// rule other than `public`.
async fn check_msc4494_mutual_room(&self, sender: &UserId, recipient: &UserId) -> bool {
let mut mutual_rooms = std::pin::pin!(