Remove unused error code

This commit is contained in:
Girish Ramakrishnan
2019-04-15 16:54:41 -07:00
parent 2f068c66d4
commit f0f18db5a8
2 changed files with 0 additions and 2 deletions

View File

@@ -189,7 +189,6 @@ function setMailEnabled(req, res, next) {
mail.setMailEnabled(req.params.domain, !!req.body.enabled, auditSource.fromRequest(req), function (error) {
if (error && error.reason === MailError.NOT_FOUND) return next(new HttpError(404, error.message));
if (error && error.reason === MailError.BAD_FIELD) return next(new HttpError(400, error.message));
if (error && error.reason === MailError.BILLING_REQUIRED) return next(new HttpError(402, error.message));
if (error) return next(new HttpError(500, error));
next(new HttpSuccess(202));