Skip to content

Commit 3cda022

Browse files
committed
避免sonar检查
1 parent 3a10d06 commit 3cda022

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/common/style/CartoCSS.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -265,26 +265,26 @@ export default class CartoCSS {
265265
}
266266

267267
switch (c) {
268-
case '{':
268+
case '{'://NOSONAR
269269
if (!inParam) {
270270
level++;
271271
chunk.push(c);
272272
break;
273273
}
274-
case '}':
274+
case '}'://NOSONAR
275275
if (!inParam) {
276276
level--;
277277
chunk.push(c);
278278
chunks[++j] = chunk = [];
279279
break;
280280
}
281-
case '(':
282-
if (!inParam) {
281+
case '('://NOSONAR
282+
if (!inParam) {x
283283
inParam = true;
284284
chunk.push(c);
285285
break;
286286
}
287-
case ')':
287+
case ')'://NOSONAR
288288
if (inParam) {
289289
inParam = false;
290290
chunk.push(c);
@@ -972,12 +972,12 @@ export default class CartoCSS {
972972
}
973973
return {
974974
"property": prop,
975-
"getValue": Function("attributes", "zoom", "seftFilter", "var _value = null; var isExcute=typeof seftFilter=='function'?sefgFilter():seftFilter;if(isExcute){" + body + ";} return _value; ")
975+
"getValue": Function("attributes", "zoom", "seftFilter", "var _value = null; var isExcute=typeof seftFilter=='function'?sefgFilter():seftFilter;if(isExcute){" + body + ";} return _value; ")//NOSONAR
976976
};
977977
} else {
978978
return {
979979
"property": prop,
980-
"getValue": Function("attributes", "zoom", "var _value = null;" + body + "; return _value; ")
980+
"getValue": Function("attributes", "zoom", "var _value = null;" + body + "; return _value; ")//NOSONAR
981981
};
982982
}
983983
}(shader[prop], shaderArray);

0 commit comments

Comments
 (0)