Skip to content

Commit

Permalink
removed redundant return data
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmelnikov82 committed May 27, 2022
1 parent eed9bbf commit a2d6fd5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plots/cartesian/axes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2650,7 +2650,7 @@ axes.drawOne = function(gd, ax, opts) {
};

function filterPush(push, automargin) {
if(!push) return push;
if(!push) return;

var keepMargin = Object.keys(MARGIN_MAPPING).reduce(function(data, nextKey) {
if(automargin.indexOf(nextKey) !== -1) {
Expand All @@ -2665,7 +2665,6 @@ function filterPush(push, automargin) {
else delete push[key];
}
});
return push;
}

function getBoundaryVals(ax, vals) {
Expand Down

0 comments on commit a2d6fd5

Please sign in to comment.