remove wrong else logic

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2023-12-22 18:31:15 -05:00 committed by June
parent dd8a6ede09
commit 5bb6128149

View file

@ -13,7 +13,7 @@ use ruma::{
events::{room::message::RoomMessageEventContent, GlobalAccountDataEventType},
push, UserId,
};
use tracing::{error, info, warn};
use tracing::{info, warn};
use register::RegistrationKind;
@ -280,9 +280,6 @@ pub async fn register_route(body: Ruma<register::v3::Request>) -> Result<registe
.await?;
warn!("Granting {} admin privileges as the first user", user_id);
} else {
error!("First registered user \"{user_id}\" is a guest account, not granting admin privileges.\n
Recommend disabling public and guest registrations, and using emergency password to get access back, or reset your database with disabled registration.");
}
Ok(register::v3::Response {