Skip to content

Commit

Permalink
refactor(ArticleStatusFilter): add exhausive check to ensure we are n…
Browse files Browse the repository at this point in the history
…ot missing any filter case
  • Loading branch information
MrOrz committed Mar 17, 2023
1 parent 033e7a7 commit fbee969
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/ListPageControls/ArticleStatusFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ export function getFilter(
case FILTERS.REPLIED_MANY_TIMES:
filterObj.replyCount = { GTE: 3 };
break;
default:
default: {
const exhausiveCheck: never = filter;
return exhausiveCheck;
}
}
}

Expand Down

0 comments on commit fbee969

Please sign in to comment.