Skip to content

Commit

Permalink
Removed useless conditional.
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkishpolicy committed Apr 4, 2024
1 parent aca3fe6 commit d59695c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions backend/src/api/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d59695c

Please sign in to comment.