ICU-5410 Improve code coverage through refactorization
X-SVN-Rev: 20667
This commit is contained in:
parent
1d283c8c87
commit
6ea0cd2f7d
@ -469,11 +469,10 @@ static ContractionTable *_cnttab_getContractionTable(CntTable *table, uint32_t e
|
||||
element &= 0xFFFFFF;
|
||||
ContractionTable *tbl = NULL;
|
||||
|
||||
if((element == 0xFFFFFF) || (tbl = table->elements[element]) == NULL) {
|
||||
return NULL;
|
||||
} else {
|
||||
return tbl;
|
||||
if(element != 0xFFFFFF) {
|
||||
tbl = table->elements[element]; /* This could also return NULL */
|
||||
}
|
||||
return tbl;
|
||||
}
|
||||
|
||||
static int32_t _cnttab_findCP(ContractionTable *tbl, UChar codePoint) {
|
||||
|
Loading…
Reference in New Issue
Block a user