Avoid counting where not necessary
Change-Id: Iaae939780df26066de40e1584492865cb0ac80a7
This commit is contained in:
committed by
Umherirrender
parent
6d714e1fc7
commit
f2e2e640c6
@@ -135,7 +135,7 @@ class LanguageNameSearch {
|
||||
break;
|
||||
} else {
|
||||
// Codepoints larger than 127 are represented by multi-byte sequences
|
||||
if ( count( $values ) === 0 ) {
|
||||
if ( $values === [] ) {
|
||||
// 224 is the lowest non-overlong-encoded codepoint.
|
||||
$lookingFor = ( $thisValue < 224 ) ? 2 : 3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user