Simplify code
This commit is contained in:
parent
5a24681d7d
commit
39e301f884
1 changed files with 2 additions and 4 deletions
|
@ -186,10 +186,8 @@ public class RouteDataObject {
|
|||
}
|
||||
}
|
||||
}
|
||||
if(transliterate && destinationDefault != null) {
|
||||
return destRef1 + Junidecode.unidecode(destinationDefault);
|
||||
} else if (destinationDefault != null) {
|
||||
return destRef1 + destinationDefault;
|
||||
if(destinationDefault != null) {
|
||||
return destRef1 + ((transliterate) ? Junidecode.unidecode(destinationDefault) : destinationDefault);
|
||||
}
|
||||
}
|
||||
return "".equals(destRef) ? null : destRef;
|
||||
|
|
Loading…
Reference in a new issue