From d59695c9c3028138b9102833138d09efc8334682 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 4 Apr 2024 11:25:16 -0400 Subject: [PATCH] Removed useless conditional. --- backend/src/api/users.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/src/api/users.ts b/backend/src/api/users.ts index 6377f6ae..308e2257 100644 --- a/backend/src/api/users.ts +++ b/backend/src/api/users.ts @@ -948,10 +948,8 @@ export const RSCRegister = wrapHandler(async (event) => { statusCode: 422, body: 'User email already exists. Registration failed.' }; - } - - // Create if user does not exist - if (!user) { + // Create if user does not exist + } else { user = await User.create(newRSCUser); await User.save(user); // Send email notification