Clean up ReadHistoryCommand.

This commit is contained in:
Johannes Mockenhaupt 2017-11-20 19:13:39 +01:00
parent dbd442e8ea
commit 16c97acf4e
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -102,7 +102,6 @@ public class ReadHistoryCommand extends BaseCommand {
scripter.returnToRootMenu();
scripter.verifyRootMenuIsDisplayed();
}
if (log.isDebugEnabled()) {
if (!history.bolusHistory.isEmpty()) {
@ -130,8 +129,10 @@ public class ReadHistoryCommand extends BaseCommand {
}
}
}
result.success(true).history(history);
}
}
private void readTddRecords(long requestedTime) {
int record = (int) scripter.getCurrentMenu().getAttribute(MenuAttribute.CURRENT_RECORD);