Skip to content

Commit 4507ec5

Browse files
committed
Fix eslint warnings for multiple var declarations
1 parent 06640b4 commit 4507ec5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plot_api/plot_api.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ Plotly.addTraces = function addTraces(gd, traces, newIndices) {
13561356
// if the user didn't define newIndices, they just want the traces appended
13571357
// i.e., we can simply redraw and be done
13581358
if (typeof newIndices === 'undefined') {
1359-
var promise = Plotly.redraw(gd);
1359+
promise = Plotly.redraw(gd);
13601360
if (Queue) Queue.add(gd, undoFunc, undoArgs, redoFunc, redoArgs);
13611361
return promise;
13621362
}
@@ -1382,7 +1382,7 @@ Plotly.addTraces = function addTraces(gd, traces, newIndices) {
13821382
// this requires some extra work that moveTraces will do
13831383
if (Queue) Queue.startSequence(gd);
13841384
if (Queue) Queue.add(gd, undoFunc, undoArgs, redoFunc, redoArgs);
1385-
var promise = Plotly.moveTraces(gd, currentIndices, newIndices);
1385+
promise = Plotly.moveTraces(gd, currentIndices, newIndices);
13861386
if (Queue) Queue.stopSequence(gd);
13871387
return promise;
13881388
};

0 commit comments

Comments
 (0)