Skip to content

Commit

Permalink
Apply prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
weltenwort committed Nov 13, 2019
1 parent f9afd8e commit 8e2d129
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,9 @@ export const WithMetrics = ({
nodeId,
cloudId,
}: WithMetricsProps) => {
const metrics = layouts.reduce(
(acc, item) => {
return acc.concat(item.sections.map(s => s.id));
},
[] as InventoryMetric[]
);
const metrics = layouts.reduce<InventoryMetric[]>((acc, item) => {
return acc.concat(item.sections.map(s => s.id));
}, []);

if (!isInfraMetrics(metrics)) {
throw new Error(
Expand Down

0 comments on commit 8e2d129

Please sign in to comment.