]> git.ktnx.net Git - mobile-ledger.git/commitdiff
split ef/else/if into separate statements
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 10 Nov 2019 17:50:47 +0000 (19:50 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 10 Nov 2019 17:50:47 +0000 (19:50 +0200)
app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionModel.java

index 66b01276eb58094a9de66d9035ffae414532383e..44327cbe5b4522bfb874f44782424304b693522f 100644 (file)
@@ -113,8 +113,10 @@ public class NewTransactionModel extends ViewModel {
         if (index == 0) {
             return header;
         }
-        else if (index <= items.size()) return items.get(index - 1);
-        else return trailer;
+
+        if (index <= items.size()) return items.get(index - 1);
+
+        return trailer;
     }
     // rules:
     // 1) at least two account names