Skip to content

Commit

Permalink
Fix code inspector issues in ScheduledActionService
Browse files Browse the repository at this point in the history
  • Loading branch information
rivaldi8 committed Feb 18, 2018
1 parent dea1741 commit 94bfc01
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ private static int executeBackup(ScheduledAction scheduledAction, SQLiteDatabase
* @param scheduledAction Scheduled action
* @return {@code true} if execution is due, {@code false} otherwise
*/
@SuppressWarnings("RedundantIfStatement")
private static boolean shouldExecuteScheduledBackup(ScheduledAction scheduledAction) {
long now = System.currentTimeMillis();
long endTime = scheduledAction.getEndTime();
Expand All @@ -213,7 +214,7 @@ private static int executeTransactions(ScheduledAction scheduledAction, SQLiteDa
int executionCount = 0;
String actionUID = scheduledAction.getActionUID();
TransactionsDbAdapter transactionsDbAdapter = new TransactionsDbAdapter(db, new SplitsDbAdapter(db));
Transaction trxnTemplate = null;
Transaction trxnTemplate;
try {
trxnTemplate = transactionsDbAdapter.getRecord(actionUID);
} catch (IllegalArgumentException ex){ //if the record could not be found, abort
Expand Down

0 comments on commit 94bfc01

Please sign in to comment.