Skip to content

Commit

Permalink
Ignore error handling that is really rare
Browse files Browse the repository at this point in the history
  • Loading branch information
johnson-liang committed Sep 18, 2019
1 parent b6e225a commit 7f4a002
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/graphql/mutations/CreateOrUpdateArticleReplyFeedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ export default {
},
_source: true,
});

/* istanbul ignore if */
if (articleReplyUpdateResult.result !== 'updated') {
throw new Error(
`Cannot article ${articleId}'s feedback count for feedback ID = ${id}`
Expand All @@ -127,6 +129,7 @@ export default {
articleReply => articleReply.replyId === replyId
);

/* istanbul ignore if */
if (!updatedArticleReply) {
throw new Error(
`Cannot get updated article reply with article ID = ${articleId} and reply ID = ${replyId}`
Expand Down

0 comments on commit 7f4a002

Please sign in to comment.