Skip to content

Commit

Permalink
Remove unused else
Browse files Browse the repository at this point in the history
  • Loading branch information
fkanout committed Jul 28, 2022
1 parent 2fd2fc9 commit cbef6f9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,8 @@ export async function fetchRuleAlertsAggByTimeRange({
// We add the background bar even if there is alerts in this day, but we calculate the delta.
{ ...totalDayAlerts, count: totalAlerts - dayAlerts.doc_count },
];
} else {
return [...acc, { ...totalDayAlerts }];
}
return [...acc, { ...totalDayAlerts }];
},
[]
),
Expand Down

0 comments on commit cbef6f9

Please sign in to comment.