Minor code style fixes in UIText
@@ -677,10 +677,9 @@ public void bindText(Binding<String> binding) {
* contents of linesOfText or text accordingly.
*/
public String getText() {
- String arrayText = "";
if (linesOfText.length > 0) {
- arrayText = String.join("\n", linesOfText);
- if(text.get() != "") {
+ String arrayText = String.join("\n", linesOfText);
+ if (text.get().equals("")) {
return text.get() + "\n" + arrayText;
}
return text.get() + arrayText;
