Skip to content

Commit

Permalink
remove unnecessary optional chaining operators
Browse files Browse the repository at this point in the history
  • Loading branch information
drewdaemon committed May 9, 2022
1 parent cee8d53 commit 9ee0704
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugins/vis_types/pie/public/to_ast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ export const toExpressionAst: VisToExpressionAst<PartitionVisParams> = async (vi
addTooltip: vis.params.addTooltip,
legendDisplay: vis.params.legendDisplay,
legendPosition: vis.params.legendPosition,
nestedLegend: vis.params?.nestedLegend ?? false,
nestedLegend: vis.params.nestedLegend ?? false,
truncateLegend: vis.params.truncateLegend,
maxLegendLines: vis.params.maxLegendLines,
legendSize: vis.params?.legendSize,
distinctColors: vis.params?.distinctColors,
legendSize: vis.params.legendSize,
distinctColors: vis.params.distinctColors,
isDonut: vis.params.isDonut ?? false,
emptySizeRatio: vis.params.emptySizeRatio,
palette: preparePalette(vis.params?.palette),
palette: preparePalette(vis.params.palette),
labels: prepareLabels(vis.params.labels),
metric: schemas.metric.map(prepareDimension),
buckets: schemas.segment?.map(prepareDimension),
Expand Down

0 comments on commit 9ee0704

Please sign in to comment.