Skip to content

Commit ca04ce3

Browse files
committed
Use null instead of undefined here
1 parent b76a3d3 commit ca04ce3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/html/static/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ function defocusSearchBar() {
859859
for (x = 0; x < vlength; ++x) {
860860
var lev = MAX_LEV_DISTANCE + 1;
861861
var firstGeneric = getObjectNameFromId(val.generics[x]);
862-
var match = undefined;
862+
var match = null;
863863
if (elems[firstGeneric]) {
864864
match = firstGeneric;
865865
lev = 0;
@@ -872,7 +872,7 @@ function defocusSearchBar() {
872872
}
873873
}
874874
}
875-
if (match !== undefined) {
875+
if (match !== null) {
876876
elems[match] -= 1;
877877
if (elems[match] == 0) {
878878
delete elems[match];

0 commit comments

Comments
 (0)