Skip to content

Commit

Permalink
remove some empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
estermv committed Sep 2, 2021
1 parent aa4fcbb commit 1759c25
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions x-pack/plugins/monitoring/public/alerts/badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ export const AlertsBadge: React.FC<Props> = (props: Props) => {
const alertsList = Object.values(props.alerts).flat();
const alerts = alertsList.filter((alertItem) => Boolean(alertItem?.sanitizedRule));
const [showPopover, setShowPopover] = React.useState<AlertSeverity | boolean | null>(null);

const inSetupMode = isInSetupMode(React.useContext(SetupModeContext));

const alertCount = inSetupMode
? alerts.length
: alerts.reduce(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ export function shouldShowAlertBadge(
if (!alerts) {
return false;
}

const inSetupMode = isInSetupMode(context);

const alertExists = alertTypeIds.find(
(name) => alerts[name] && alerts[name].find((rule) => rule.states.length > 0)
);
Expand Down

0 comments on commit 1759c25

Please sign in to comment.