]> git.ktnx.net Git - mobile-ledger.git/commitdiff
transaction.getDate() never returns null
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 15 Aug 2020 12:01:19 +0000 (12:01 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 15 Aug 2020 12:48:13 +0000 (12:48 +0000)
app/src/main/java/net/ktnx/mobileledger/async/SendTransactionTask.java

index e3675b177ba738950b27234ee98f2a0e5297375e..5bd55be4d6c1e36e928cb0211a287bb46a519143 100644 (file)
@@ -178,9 +178,6 @@ public class SendTransactionTask extends AsyncTask<LedgerTransaction, Void, Void
             params.addPair("_token", token);
 
         SimpleDate transactionDate = transaction.getDate();
-        if (transactionDate == null) {
-            transactionDate = SimpleDate.today();
-        }
 
         params.addPair("date", Globals.formatLedgerDate(transactionDate));
         params.addPair("description", transaction.getDescription());