Skip to content

Commit

Permalink
[blockUser] do not need to cover "else" for exception
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOrz committed Nov 21, 2021
1 parent 20a0a75 commit 6b7d0e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scripts/blockUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ async function writeBlockedReasonToUser(userId, blockedReason) {
);
}
} catch (e) {
/* istanbul ignore else */
if (e.message === 'document_missing_exception') {
throw new Error(`User with ID=${userId} does not exist`);
}
Expand Down

0 comments on commit 6b7d0e2

Please sign in to comment.