Skip to content

Commit 68ee2c4

Browse files
author
Vladyslav Chygrinov
committed
Revert changes
1 parent c0688b3 commit 68ee2c4

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/Routers/PublicAPIRouter.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,13 @@ export class PublicAPIRouter extends PromiseRouter {
210210
if (
211211
result.err ===
212212
'Password does not meet the Password Policy requirements.'
213-
) {
213+
)
214214
throw new Parse.Error(Parse.Error.OTHER_CAUSE, `${result.err}`);
215-
} else {
216-
throw new Parse.Error(
217-
Parse.Error.OTHER_CAUSE,
218-
'Failed to reset password (Username/email or token is invalid)'
219-
);
220-
}
215+
216+
throw new Parse.Error(
217+
Parse.Error.OTHER_CAUSE,
218+
'Failed to reset password (Username/email or token is invalid)'
219+
);
221220
}
222221

223222
return Promise.resolve({

0 commit comments

Comments
 (0)