We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 073ca25 commit 0064696Copy full SHA for 0064696
viplab-standalone-frontend-vue/src/components/viplab-plots/parse.js
@@ -12,8 +12,7 @@ export default function Parse(viplabFile) {
12
};
13
14
this.parseFileToJson = function () {
15
- const json = JSON.parse(this.file.replace(/\n/g, '\\n'));
16
- return json;
+ return JSON.parse(this.file.replace(/\n/g, '\\n'));
17
18
19
this.parseValues = function (json) {
@@ -63,20 +62,12 @@ export default function Parse(viplabFile) {
63
62
[, , height] = splitLine;
64
break;
65
case 'min-color': {
66
- let r1;
67
- let g1;
68
- let b1;
69
- // eslint-disable-next-line prefer-const
70
- [, , r1, g1, b1] = splitLine;
+ const [, , r1, g1, b1] = splitLine;
71
cmin = `rgb(${r1}, ${g1}, ${b1})`;
72
73
}
74
case 'max-color': {
75
- let r2;
76
- let g2;
77
- let b2;
78
79
- [, , r2, g2, b2] = splitLine;
+ const [, , r2, g2, b2] = splitLine;
80
cmax = `rgb(${r2}, ${g2}, ${b2})`;
81
82
0 commit comments