Skip to content

Commit ae1b087

Browse files
committedMay 27, 2022
removed redundant return data
1 parent eed9bbf commit ae1b087

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎src/plots/cartesian/axes.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -2650,22 +2650,20 @@ axes.drawOne = function(gd, ax, opts) {
26502650
};
26512651

26522652
function filterPush(push, automargin) {
2653-
if(!push) return push;
2653+
if(!push) return;
26542654

26552655
var keepMargin = Object.keys(MARGIN_MAPPING).reduce(function(data, nextKey) {
26562656
if(automargin.indexOf(nextKey) !== -1) {
26572657
MARGIN_MAPPING[nextKey].forEach(function(key) { data[key] = 1;});
26582658
}
26592659
return data;
26602660
}, {});
2661-
26622661
Object.keys(push).forEach(function(key) {
26632662
if(!keepMargin[key]) {
26642663
if(key.length === 1) push[key] = 0;
26652664
else delete push[key];
26662665
}
26672666
});
2668-
return push;
26692667
}
26702668

26712669
function getBoundaryVals(ax, vals) {

0 commit comments

Comments
 (0)
Please sign in to comment.