Fix eslint errors again.

This commit is contained in:
Alexis Lahouze 2016-10-14 09:20:02 +02:00
parent 43714c1b1d
commit 727b2fc313

View File

@ -115,6 +115,7 @@ angular.module('accountant.operations', [
size: '60%', size: '60%',
dataLabels: { dataLabels: {
formatter: function() { formatter: function() {
// eslint-disable-next-line angular/controller-as-vm
return this.point.name; return this.point.name;
}, },
distance: -40 distance: -40
@ -126,8 +127,14 @@ angular.module('accountant.operations', [
size: '60%', size: '60%',
dataLabels: { dataLabels: {
formatter: function() { formatter: function() {
return this.point.name !== null && this.percentage >= // eslint-disable-next-line angular/controller-as-vm
2.5 ? this.point.name : null; } if (this.point.name !== null && this.percentage >= 2.5) {
// eslint-disable-next-line angular/controller-as-vm
return this.point.name;
}
return null;
}
} }
}] }]
}; };