File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,17 +55,17 @@ async function ValidateMailboxAsync(email, name) {
5555 throw new HttpError ( 400 , "Invalid name" )
5656 }
5757
58- const existing = await services . mailboxes . GetMailboxByEmail ( email )
58+ const mailbox = await services . mailboxes . GetMailboxByEmail ( email )
5959
60- if ( existing ) {
60+ if ( mailbox ) {
6161 throw new HttpError ( 409 , "Mailbox already claimed" )
6262 }
6363}
6464
6565async function EnsureNotMailboxAsync ( email ) {
6666 ValidateEmail ( email )
6767
68- const existing = await services . mailboxes . GetMailboxByEmail ( email )
68+ const mailbox = await services . mailboxes . GetMailboxByEmail ( email )
6969
7070 if ( mailbox ) {
7171 throw new HttpError ( 409 , "Mailbox already claimed" )
@@ -75,7 +75,7 @@ async function EnsureNotMailboxAsync(email) {
7575async function EnsureMailboxAsync ( email ) {
7676 ValidateEmail ( email )
7777
78- const existing = await services . mailboxes . GetMailboxByEmail ( email )
78+ const mailbox = await services . mailboxes . GetMailboxByEmail ( email )
7979
8080 if ( ! mailbox ) {
8181 throw new HttpError ( 404 , "Mailbox does not exist" )
You can’t perform that action at this time.
0 commit comments