Remove already fixed TODOs

This commit is contained in:
Oystein Kristoffer Tveit 2024-08-07 16:18:48 +02:00
parent 9d0b632e9c
commit 05c15da59d
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 0 additions and 2 deletions

View File

@ -72,7 +72,6 @@ pub async fn handle_command(command: UserCommand, mut conn: MySqlConnection) ->
result
}
// TODO: provide a better error message when the user already exists
async fn create_users(args: UserCreateArgs, conn: &mut MySqlConnection) -> anyhow::Result<()> {
if args.username.is_empty() {
anyhow::bail!("No usernames provided");
@ -87,7 +86,6 @@ async fn create_users(args: UserCreateArgs, conn: &mut MySqlConnection) -> anyho
Ok(())
}
// TODO: provide a better error message when the user does not exist
async fn drop_users(args: UserDeleteArgs, conn: &mut MySqlConnection) -> anyhow::Result<()> {
if args.username.is_empty() {
anyhow::bail!("No usernames provided");