Skip to content

Commit

Permalink
removed unnecessary parens from new controller.doughnut.js code
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent-Ip committed Feb 23, 2019
1 parent 2ca836e commit 94bbb9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/controller.doughnut.js
Expand Up @@ -188,8 +188,8 @@ module.exports = DatasetController.extend({

meta.total = me.calculateTotal();

me.outerRadius = chart.outerRadius - (chart.radiusLength * me._getRingWeightOffset(me.index));
me.innerRadius = Math.max(me.outerRadius - (chart.radiusLength * chartWeight), 0);
me.outerRadius = chart.outerRadius - chart.radiusLength * me._getRingWeightOffset(me.index);
me.innerRadius = Math.max(me.outerRadius - chart.radiusLength * chartWeight, 0);

for (i = 0, ilen = arcs.length; i < ilen; ++i) {
me.updateElement(arcs[i], i, reset);
Expand Down

0 comments on commit 94bbb9b

Please sign in to comment.