Skip to content

Commit 41504aa

Browse files
committed
remove extra cast operations
1 parent df9b4c4 commit 41504aa

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/traces/streamtube/calc.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@ function processGrid(trace) {
107107
var firstY, lastY;
108108
var firstZ, lastZ;
109109
if(len) {
110-
firstX = +x[0];
111-
firstY = +y[0];
112-
firstZ = +z[0];
110+
firstX = x[0];
111+
firstY = y[0];
112+
firstZ = z[0];
113113
}
114114
if(len > 1) {
115-
lastX = +x[len - 1];
116-
lastY = +y[len - 1];
117-
lastZ = +z[len - 1];
115+
lastX = x[len - 1];
116+
lastY = y[len - 1];
117+
lastZ = z[len - 1];
118118
}
119119

120120
for(i = 0; i < len; i++) {
@@ -127,15 +127,15 @@ function processGrid(trace) {
127127
zMax = Math.max(zMax, z[i]);
128128
zMin = Math.min(zMin, z[i]);
129129

130-
if(!filledX && (+x[i]) !== firstX) {
130+
if(!filledX && x[i] !== firstX) {
131131
filledX = true;
132132
gridFill += 'x';
133133
}
134-
if(!filledY && (+y[i]) !== firstY) {
134+
if(!filledY && y[i] !== firstY) {
135135
filledY = true;
136136
gridFill += 'y';
137137
}
138-
if(!filledZ && (+z[i]) !== firstZ) {
138+
if(!filledZ && z[i] !== firstZ) {
139139
filledZ = true;
140140
gridFill += 'z';
141141
}

0 commit comments

Comments
 (0)