Skip to content

Commit f4f21c9

Browse files
committed
Use === instead of ==.
A few more == tests snuck into the codebase.
1 parent 739bf0a commit f4f21c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/css/ValidationTypes.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ var ValidationTypes = {
149149
},
150150

151151
"<glyph-angle>": function(part){
152-
return part.type == "angle" && part.units == 'deg';
152+
return part.type === "angle" && part.units === 'deg';
153153
},
154154

155155
"<uri>": function(part){
@@ -519,10 +519,10 @@ var ValidationTypes = {
519519
identifiers[part]++;
520520
found = identifiers[part];
521521
}
522-
} while (found == 1 && expression.hasNext());
522+
} while (found === 1 && expression.hasNext());
523523

524-
result = found == 1 && !expression.hasNext();
525-
if (found === 0 && JSON.stringify(identifiers) == '{}') {
524+
result = found === 1 && !expression.hasNext();
525+
if (found === 0 && JSON.stringify(identifiers) === '{}') {
526526
expression.previous();
527527
}
528528
return result;

0 commit comments

Comments
 (0)