1
Fork 0

Remove unreachable code in hasClass function in Rustdoc

This commit is contained in:
Konrad Borowski 2018-10-28 12:12:29 +01:00 committed by GitHub
parent 1982f1887a
commit b7c2b471cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,11 +93,6 @@
var end = start + className.length;
return !(end < elemClass.length && elemClass[end] !== ' ');
}
if (start > 0 && elemClass[start - 1] !== ' ') {
return false;
}
var end = start + className.length;
return !(end < elemClass.length && elemClass[end] !== ' ');
}
return false;
}