Skip to content

Commit e21af96

Browse files
committed
Fix linter errors
1 parent 910163e commit e21af96

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/plots/cartesian/axes.js

+7-8
Original file line numberDiff line numberDiff line change
@@ -948,19 +948,18 @@ axes.calcTicks = function calcTicks(ax, opts) {
948948
// original comment:
949949
// now that we've figured out the auto values for formatting
950950
// in case we're missing some ticktext, we can break out for array ticks
951-
if (mockAx.tickmode === 'array' || mockAx.tickmode === 'proportional') {
952-
951+
if(mockAx.tickmode === 'array' || mockAx.tickmode === 'proportional') {
953952
// Mapping proportions to array:
954953
var valsProp, fractionalVals;
955954
var width = maxRange - minRange;
956955
var offset = !axrev ? minRange : maxRange;
957-
if (axrev) width *= -1;
958-
if (mockAx.tickmode === 'proportional') {
959-
valsProp = major ? Lib.nestedProperty(ax, "tickvals") : Lib.nestedProperty(ax.minor, "tickvals");
956+
if(axrev) width *= -1;
957+
if(mockAx.tickmode === 'proportional') {
958+
valsProp = major ? Lib.nestedProperty(ax, 'tickvals') : Lib.nestedProperty(ax.minor, 'tickvals');
960959
fractionalVals = valsProp.get();
961960
var mappedVals = Lib.simpleMap(fractionalVals, function(fraction, offset, width, type) {
962-
var mapped = offset + (width*fraction);
963-
return (type === "log") ? Math.pow(10, mapped) : mapped
961+
var mapped = offset + (width * fraction);
962+
return (type === 'log') ? Math.pow(10, mapped) : mapped;
964963
}, offset, width, type);
965964
valsProp.set(mappedVals);
966965
}
@@ -975,7 +974,7 @@ axes.calcTicks = function calcTicks(ax, opts) {
975974
}
976975

977976
// Reset tickvals back to proportional
978-
if (mockAx.tickmode === 'proportional') valsProp.set(fractionalVals);
977+
if(mockAx.tickmode === 'proportional') valsProp.set(fractionalVals);
979978
continue;
980979
}
981980

0 commit comments

Comments
 (0)