Remove superfluous code (state is always set later in controlling thread).
This commit is contained in:
parent
599f3ce23c
commit
55e7006967
|
@ -181,11 +181,7 @@ public class RuffyScripter {
|
||||||
// check if pump is an an error state
|
// check if pump is an an error state
|
||||||
if (currentMenu == null || currentMenu.getType() == MenuType.WARNING_OR_ERROR) {
|
if (currentMenu == null || currentMenu.getType() == MenuType.WARNING_OR_ERROR) {
|
||||||
try {
|
try {
|
||||||
PumpState pumpState = null;
|
returnable.cmdResult = new CommandResult().message("Pump is in an error state: " + currentMenu.getAttribute(MenuAttribute.MESSAGE));
|
||||||
try {
|
|
||||||
pumpState = readPumpState();
|
|
||||||
} catch (Exception e) { /* We tried ... */ }
|
|
||||||
returnable.cmdResult = new CommandResult().message("Pump is in an error state: " + currentMenu.getAttribute(MenuAttribute.MESSAGE)).state(pumpState);
|
|
||||||
return;
|
return;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
returnable.cmdResult = new CommandResult().message("Pump is in an error state, reading the error state resulted in the attached exception").exception(e);
|
returnable.cmdResult = new CommandResult().message("Pump is in an error state, reading the error state resulted in the attached exception").exception(e);
|
||||||
|
|
Loading…
Reference in a new issue