Simplify code

This commit is contained in:
Hardy 2016-12-03 08:57:12 +01:00 committed by GitHub
parent 5a24681d7d
commit 39e301f884

View file

@ -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;