Skip to content

Commit 01b8788

Browse files
committed
Remove useless variable
1 parent 3443d9c commit 01b8788

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

lib/parse.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ CSSOM.parse = function parse(token) {
3131
var state = "before-selector";
3232

3333
var index;
34-
var j = i;
3534
var buffer = "";
3635

3736
var SIGNIFICANT_WHITESPACE = {
@@ -66,8 +65,7 @@ CSSOM.parse = function parse(token) {
6665

6766
// String
6867
case '"':
69-
j = i + 1;
70-
index = token.indexOf('"', j) + 1;
68+
index = token.indexOf('"', i + 1) + 1;
7169
if (!index) {
7270
throw '" is missing';
7371
}
@@ -84,8 +82,7 @@ CSSOM.parse = function parse(token) {
8482
break;
8583

8684
case "'":
87-
j = i + 1;
88-
index = token.indexOf("'", j) + 1;
85+
index = token.indexOf("'", i + 1) + 1;
8986
if (!index) {
9087
throw "' is missing";
9188
}

0 commit comments

Comments
 (0)