From: David Cho-Lerat Date: Mon, 23 Oct 2023 08:05:55 +0000 (+0200) Subject: [NO-JIRA] Fix unnecessary assertion X-Git-Tag: 10.3.0.82913~107 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a22e9845fcc54dfde358327ed931383cd5fe3b01;p=sonarqube.git [NO-JIRA] Fix unnecessary assertion --- diff --git a/server/sonar-web/src/main/js/apps/overview/components/SonarLintPromotion.tsx b/server/sonar-web/src/main/js/apps/overview/components/SonarLintPromotion.tsx index f411e716812..92ac6bfb1be 100644 --- a/server/sonar-web/src/main/js/apps/overview/components/SonarLintPromotion.tsx +++ b/server/sonar-web/src/main/js/apps/overview/components/SonarLintPromotion.tsx @@ -50,7 +50,7 @@ const CONDITIONS_TO_SHOW = [ export function SonarLintPromotion({ currentUser, qgConditions }: SonarLintPromotionProps) { const showMessage = qgConditions?.some( (qgCondition) => - CONDITIONS_TO_SHOW.includes(qgCondition.metric as MetricKey) && qgCondition.level === 'ERROR', + CONDITIONS_TO_SHOW.includes(qgCondition.metric) && qgCondition.level === 'ERROR', ); if (!showMessage || currentUser.usingSonarLintConnectedMode) { return null;