mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-12 16:13:57 +02:00
style: Reformat and whatnot
This commit is contained in:
parent
a7944a5e58
commit
52a0f67caa
6 changed files with 8 additions and 15 deletions
|
@ -197,7 +197,7 @@ async fn is_event_report_valid(
|
|||
valid"
|
||||
);
|
||||
|
||||
if room_id != &pdu.room_id_or_hash() {
|
||||
if room_id != pdu.room_id_or_hash() {
|
||||
return Err!(Request(NotFound("Event ID does not belong to the reported room",)));
|
||||
}
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ pub(crate) async fn create_room_route(
|
|||
|
||||
// check if room ID doesn't already exist instead of erroring on auth check
|
||||
if let Some(ref room_id) = room_id {
|
||||
if services.rooms.short.get_shortroomid(&room_id).await.is_ok() {
|
||||
if services.rooms.short.get_shortroomid(room_id).await.is_ok() {
|
||||
return Err!(Request(RoomInUse("Room with that custom room ID already exists",)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue