Skip to content

Commit db35a85

Browse files
committed
move declaration to inner scope
1 parent 8cd4d3e commit db35a85

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

js/common/plotter.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,10 @@ export function plotValues(chartObj, serialMessage, bufferSize) {
4545
}
4646

4747
let valuesToPlot;
48-
let textValues;
4948

5049
// handle possible tuple in textLine
5150
if (textLine.startsWith("(") && textLine.endsWith(")")) {
52-
textValues = textLine.substring(1, textLine.length - 1).trim();
51+
let textValues = textLine.substring(1, textLine.length - 1).trim();
5352
// Python tuples can end with a comma, but JS arrays cannot
5453
if (textValues.endsWith(",")) {
5554
textValues = textValues.substring(0, textValues.length - 1);

0 commit comments

Comments
 (0)